• 欢迎关注微信公众号:九万里大数据
  • 请使用Ctrl+D收藏本站到书签栏
  • 手机也可访问本站 jwldata.com

Apache HTTP Server(httpd)使用源码包编译安装

网站建设 九万里大数据 2年前 (2021-05-06) 528次浏览 0个评论 扫描二维码
文章目录[隐藏]

Apache HTTP Server(简称httpd)是互联网使用最广泛的开源web服务中间件,诞生于1995年。通常与Linux, MySQL, PHP搭配使用,组合成LAMP,用于部署网站。

Apache HTTP Server(httpd)使用源码包编译安装

httpd官网

截至目前,httpd的最新版本是2.4.46
https://httpd.apache.org/docs/2.4/install.html

下载apr和apr-util

apr是Apache Portable Runtime的缩写,apr官网下载

清华镜像源下载apr和apr-util
https://mirrors.tuna.tsinghua.edu.cn/apache//apr/apr-1.7.0.tar.bz2
https://mirrors.tuna.tsinghua.edu.cn/apache//apr/apr-util-1.6.1.tar.bz2

下载httpd

httpd官网下载

清华镜像源下载httpd
https://mirrors.tuna.tsinghua.edu.cn/apache//httpd/httpd-2.4.46.tar.bz2

编译安装apr

tar -jxf apr-1.7.0.tar.bz2
cd apr-1.7.0
 
./configure --prefix=/usr/local/apr
 
make && make install

编译安装apr-util

tar -jxf apr-util-1.6.1.tar.bz2
cd apr-util-1.6.1
 
./configure --prefix=/usr/local/apr-util --with-apr=/usr/local/apr
 
make && make install

编译安装httpd

tar -jxf httpd-2.4.46.tar.bz2
cd httpd-2.4.46
 
./configure \
--prefix=/usr/local/apache \
--with-apr=/usr/local/apr \
--with-apr-util=/usr/local/apr-util \
--enable-so \
--enable-ssl\
--enable-alib\
--with-ssl\
--with--pcre\
--enable-deflate=shared \
--enable-expires=shared \
--enable-rewrite=shared \
--enable-static-support
 
make && make install

欢迎关注我的微信公众号“九万里大数据”,原创技术文章第一时间推送。
欢迎访问原创技术博客网站 jwldata.com,排版更清晰,阅读更爽快。


Apache HTTP Server(httpd)使用源码包编译安装
 


本站文章,如未注明,均为原创 | 原创文章版权归九万里大数据所有,未经许可不得转载。
本文链接:Apache HTTP Server(httpd)使用源码包编译安装
喜欢 (1)

您必须 登录 才能发表评论!