安装apache
#安装apache
yum install httpd
#打开防火墙80端口
firewall-cmd --zone=public --add-port=80/tcp --permanent
#重启防火墙
systemctl restart firewalld.service
#重启apache服务
systemctl restart httpd.service
#安装apache
yum install httpd
#打开防火墙80端口
firewall-cmd --zone=public --add-port=80/tcp --permanent
#重启防火墙
systemctl restart firewalld.service
#重启apache服务
systemctl restart httpd.service