一、关闭防火墙 #停止firewall # systemctl stop firewalld.service # 禁止firewall开机启动 # systemctl disable firewalld.service #查看默认防火墙的状态 # firewall-cmd --state 二、安装Apache 安装Apache # yum install httpd