firewall 如何开放端口
转自官方网页:http://www.firewalld.org/documentation/howto/open-a-port-or-service.html
How to open port 80/tcp with firewall-cmd:
firewall-cmd --permanent --zone=public --add-port=80/tcp
重启后才能生效
Reload firewalld
firewall-cmd --reload
转自官方网页:http://www.firewalld.org/documentation/howto/open-a-port-or-service.html
How to open port 80/tcp with firewall-cmd:
firewall-cmd --permanent --zone=public --add-port=80/tcp
重启后才能生效
Reload firewalld
firewall-cmd --reload