Linux centos 7 防火牆關閉與開啟

獲得root 控制權限。在“#”下操作。

1、查看防火牆狀態。

systemctl status firewalld

2、 臨時關閉防火牆命令。重啟電腦後,防火牆自動起來。

systemctl stop firewalld

3、永久關閉防火牆命令。重啟後,防火牆不會自動啟動。

systemctl disable firewalld

4、打開防火牆命令。

systemctl enable firewalld

Linux centos 7 防火牆關閉與開啟


分享到:


相關文章: