apr和apr-util下载地址: http://archive.apache.org/dist/apr/
0x01:安装apr
wget http://mirrors.tuna.tsinghua.edu.cn/apache//apr/apr-1.6.5.tar.gz
tar -xzvf apr-1.6.5.tar.gz
cd apr-1.6.5
./configure
make&&make install
[一般安装在/usr/local/apr/下]
0x02:安装apr-util
wget http://archive.apache.org/dist/apr/apr-util-1.5.2.tar.gz
tar -xzvf apr-util-1.5.2.tar.gz
cd apr-util-1.5.2
./configure
#如果出错,则是没有检测到apr的安装路径,只需制定路径即可
./configure --with-apr=/usr/local/apr
make&&make install
#如果出错,则是缺少某个头文件,我的缺少 expat.h
yum install expat-devel
make&&make install
0x03:安装pcre: http://www.pcre.org/
wget https://ftp.pcre.org/pub/pcre/pcre2-10.32.tar.gz
tar -xzvf pcre2-10.32.tar.gz
cd pcre2-10.32
./configure
make && make install
0x04:安装ssl
yum install mod_ssl -y
0x04:安装httpd:http://mirrors.tuna.tsinghua.edu.cn/apache/httpd/httpd-2.4.28.tar.gz
Wget http://mirrors.tuna.tsinghua.edu.cn/apache/httpd/httpd-2.4.28.tar.gz
tar -xzvf httpd-2.4.28.tar.gz
cd httpd-2.4.28
./configure --enable-so --enable-ssl --with-ssl=/usr/local/ssl
--enable-mods-shared=all --enable-static-ab
--with-apr=/usr/local/apr --with-apr-util=/usr/local/apr-util
--with-pcre=/usr/local/pcre