The method of the external network centos 7 open port Method

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

systemctl stop firewalld.service

systemctl start firewalld.service shut down and restart the firewall

Guess you like

Origin www.cnblogs.com/yaoqingzhuan/p/12077055.html