全方位互聯網覆蓋,貼合需求、突顯行業屬性及品牌特點定制
CentOS7 的防火墻配置跟以前版本有很大區別,CentOS7這個版本的防火墻默認使用的是firewall,與之前的版本使用iptables不一樣。
1、關閉防火墻:
systemctl stop firewalld.service
2、開啟防火墻:
systemctl start firewalld.service
3、關閉開機啟動:
systemctl disable firewalld.service
4、開啟開機啟動:
systemctl enable firewalld.servic
以上就是centos7查看防火墻狀態及開啟關閉命令的詳細內容,更多請關注木子天禾科技其它相關文章!