1. 程式人生 > 其它 >centos7關閉防火牆

centos7關閉防火牆

技術標籤:Ubuntulinuxcentos

1、使用命令:systemctl status firewalld.service 檢視防火牆狀態

systemctl status firewalld.service

執行後可以看到綠色字樣標註的“active(running)”,說明防火牆是開啟狀態

2、使用命令:systemctl stop firewalld.service 關閉執行的防火牆

systemctl stop firewalld.service 

3、關閉後,使用命令systemctl status firewalld.service 檢視防火牆狀態

可以看到,disavtive(dead)的字樣,說明防火牆已經關閉

4、前面的方法,一旦重啟作業系統,防火牆就自動開啟了,該怎麼設定才能永久關閉防火牆呢?

5、輸入命令:systemctl disable firewalld.service,禁止防火牆伺服器

systemctl disable firewalld.service