下載下傳httpd-2.4.25源碼
http://mirror.bit.edu.cn/apache//httpd/httpd-2.4.25.tar.gz
#檢查是否已經安裝 httpd
rpm -qa |grep httpd
#Yum源安裝 httpd
yum install httpd
service httpd start
#出現以下錯誤
#Starting httpd: httpd: Could not reliably determine the server's fully qualified domain name, using 10.132.38.xx for ServerName
#修改/etc/httpd/conf/httpd.conf 配置,去掉ServerName 前的#(或者手動添加ServerName localhost:80)然後重新開機httpd服務:
#servcie啟動停止
service httpd start
service httpd stop
service httpd restart