- 1 关闭firwalld
- systemctl stop firewalld
- systemctl disable firewalld
- 2 关闭SElinux
- setenforce 0
- vim /etc/selinux/config
- 找到以SELINUX开头的那行,修改成SELINUX=disabled
- 以下就是脚本里的内容,执行就OK了
- yum groupinstall -y “development tools”
yum install -y openssl-devel
tar xvf httpd-2.4.33.tar.bz2
cd httpd-2.4.33
wget -SO arp-1.5.2.tar.gz http://mirrors.aliyun.com/apache/apr/apr-1.5.2.tar.gz
wget -SO arp-util-1.5.4.tar.gz http://mirrors.aliyun.com/apache/apr/apr-util-1.5.4.tar.gz
tar fxz arp-1.5.2.tar.gz
tar fxz arp-util-1.5.4.tar.gz
cp -r arp-1.5.2 srclib/
cp -r arp-util-1.5.4 srclib/
./configure –prefix=/app –sysconfdir=/etc/httpd24 –enable-ssl –with-apr=/usr/local/apr –with-apr-util=/usr/local/apr-util
make -j 4 && make install
grep “/app/bin” /etc/profile.d/env.sh && echo ok||echo”PATH=/app/bin:$PATH”>>/etc/profile.d/env.sh
source /etc/profile.d/env.sh
apachectl start
本文来自投稿,不代表Linux运维部落立场,如若转载,请注明出处:http://www.178linux.com/96876