#依赖关系
( gcc -> apr -> apr-util ) + ( g++ -> pcre ) = httpd
#step 0:编译器
yum list gcc 「c编译器」
yum list gcc-c++ 「c++编译器」
#step 1:apr
wget https://mirrors.bfsu.edu.cn/apache//httpd/httpd-2.4.46.tar.gz
tar zxf httpd-2.4.46.tar.gz
cd httpd-2.4.46/
./configure --help 「 选项查询」
mkdir /opt/xx
./configure --prefix=/opt/xx/ 「默认安装位置 /usr/local」
configure: error: APR not found. Please read the documentation.
wget http://archive.apache.org/dist/apr/apr-1.4.5.tar.gz
tar zxf apr-1.4.5.tar.gz
cd apr-1.4.5/
./configure --prefix=/usr/local/apr
make
make install