关闭防火墙和setenforce
systemctl stop firewalld.service
setenforce 0
配置yum
输入yum install httpd -y 安装httpd服务
重启httpd服务:service httpd restart