1.首先查看是否已经安装
rpm -qa httpd
2.如果没有
yum install httpd -y
rpm -ql httpd 查看
3.重新启动服务
/bin/systemctl start httpd.service