运行如下命令:
$ sudo firewall-cmd --zone=public --add-port=80/tcp --permanent $ sudo firewall-cmd --reload
参考文章:http://ask.xmodulo.com/open-port-firewall-centos-rhel.html
运行如下命令:
$ sudo firewall-cmd --zone=public --add-port=80/tcp --permanent $ sudo firewall-cmd --reload
参考文章:http://ask.xmodulo.com/open-port-firewall-centos-rhel.html