centos 7 开启外网方法端口方法
firewall-cmd --zone=public --add-port=80/tcp --permanent 开启80端口
systemctl stop firewalld.service
systemctl start firewalld.service 关闭并重启防火墙
firewall-cmd --zone=public --add-port=80/tcp --permanent 开启80端口
systemctl stop firewalld.service
systemctl start firewalld.service 关闭并重启防火墙