编译安装 httpd-2.4.25
环境介绍:
系统环境:CentOS release 6.7 (Final)
所需软件包:httpd-2.4.25.tar.gz,apr-1.5.2.tar.gz,apr-util-1.5.4.tar.gz
开发环境包组:Development Tools, Server Platform Development
0、安装开发环境包组
# yum group install “Development Tools” “Server Platform Development”
1、解决依赖关系
httpd-2.4.25 需要较新版本的 apr 和 apr-util,因此需要对此进行升级
(1)下载 arp、apr-util 源码安装包
# cd /usr/src
# wget https://mirrors.aliyun.com/apache/apr/apr-1.5.2.tar.gz
# wget https://mirrors.aliyun.com/apache/apr/apr-util-1.5.4.tar.gz
(2)编译安装 apr
src]# tar xf apr-1.5.2.tar.gz
src]# cd apr-1.5.2
apr-1.5.2]# ./configure --prefix=/usr/local/apr-httpd/
apr-1.5.2]# make
apr-1.5.2]# make install
(3)编译安装 apr-util
src]# tar xf apr-util-1.5.4.tar.gz
src]# cd apr-util-1.5.4
apr-util-1.5.4]# ./configure --prefix=/usr/local/apr-util-httpd --with-apr=/usr/local/apr-
httpd/
apr-util-1.5.4]# make
apr-util-1.5.4]# make install
(4)httpd-2.4.25 编译过程也要依赖 pcre-devel 软件包,需要事先安装
# yum install pcre-devel -y
2、编译安装 httpd-2.4.25
(1)下载 httpd-2.4.25 源码安装包
# cd /usr/src/
# wget https://mirrors.aliyun.com/apache/httpd/httpd-2.4.25.tar.gz
src]# tar xf httpd-2.4.25.tar.gz
src]# cd httpd-2.4.25
httpd-2.4.25]# ./configure --prefix=/usr/local/apache --sysconfdir=/etc/httpd --
enable-so --enable-ssl --enable-cgi --enable-rewrite --with-zlib --with-pcre --with-
apr=/usr/local/apr-httpd/ --with-apr-util=/usr/local/apr-util-httpd/ --enable-modules=most --enable-
mpms-shared=all --with-mpm=prefork
httpd-2.4.25]# make
评论0
最新资源