Firewall常用命令,開放埠

mcxiaoracle發表於2022-10-09

FirewalIID is not running.


systemctl status firewalld

如果是dead狀態,即防火牆未開啟。

systemctl start firewalld


systemctl status firewalld



systemctl unmask firewalld



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


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

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



firewall-cmd --zone=public --list-ports









參考資料:

https://www.cnblogs.com/linuxandy/p/10861760.html


https://blog.csdn.net/weixin_39902085/article/details/111177438





來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/69949806/viewspace-2917460/,如需轉載,請註明出處,否則將追究法律責任。

相關文章