下载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