1.apache 2.4.39编译安装选项
./configure \
--prefix=/usr/local/apache24 --sysconf=/etc/httpd24 --enable-so \
--enable-ssl --enable-rewrite --with-zlib --with-pcre --with-apr=/usr/local/apr \
--with-apr-util=/usr/local/apr-util --enable-modules=most \
--enable-mpms-shared=all --with-mpm=prefork
make -j8 && make install
2.下载最新repo文件方式安装(ius方式安装)
wget https://mirrors.tuna.tsinghua.edu.cn/ius/ius-release-el7.rpm
yum remove httpd httpd-tools-2.4.6-89.el7.centos.x86_64
yum install ius-release-el7.rpm -y
总结:在网络好的情况下或者需要不需要编译什么特殊功能建议采用yum方式安装!