安装apache

#安装apache

yum install httpd

#打开防火墙80端口

firewall-cmd --zone=public --add-port=80/tcp --permanent

#重启防火墙

systemctl restart firewalld.service

#重启apache服务

systemctl restart httpd.service

posted @ 2019-06-14 08:31  BicycleBoy  阅读(110)  评论(0编辑  收藏  举报