------------恢复内容开始------------
1 1> yum install -y gcc make apr-devel apr-util-devel pcre-devel openssl-devel redhat-rpm-config bzip2 2 3 4 2> wget https://downloads.apache.org/httpd/httpd-2.4.46.tar.bz2 -P /usr/local/src 5 6 3> cd /usr/local/src 7 8 4> tar xvf httpd-2.4.46.tar.bz2 9 10 5> cd httpd-2.4.46 11 12 6> ./configure --prefix=/apps/httpd --sysconfdir=/etc/httpd/ --enable-ssl 13 14 7> make -j 2 15 16 8> make install 17 18 9> echo ‘PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/root/bin:/apps/httpd/bin‘ > /etc/profile.d/httpd.sh 19 20 10> . /etc/profile.d/httpd.sh 21 22 11> apachectl start
------------恢复内容结束------------