APR and APR-Util包 下载地址:http://apr.apache.org
PCRE 下载地址:http://www.pcre.org
Apache Server2.4 下载地址:http://httpd.apache.org
1. 安装apr-1.3.2.tar.gz
- # tar zxvf apr-1.3.2.tar.gz
- # cd apr-1.3.2
- # ./configure
- # make
- # make install
//apr被安装在/usr/local/apr下
2. 安装apr-util-1.3.2.tar.gz
- # tar zxvf apr-util-1.3.2.tar.gz
- # cd apr-util-1.3.2
- # ./configure --with-apr=/usr/local/apr // --with-apr=/usr/local/apr 指定APR安装路径
- # make
- # make install
若make install 出现 error: expat.h: No such file or directory错误,则安装expat库:yum install expat-devel
3、安装httpd-2.4.17.tar.gz
- # tar zxvf httpd-2.4.17.tar.gz
- # cd httpd-2.4.17.tar.gz
- # ./configure --prefix=/usr/common/apache --enable-mods-shared=all
- # make
- # make install
来源:https://www.cnblogs.com/xiaoliangup/p/9222140.html