IT科技

當前位置 /首頁/IT科技 > /列表

centos關閉防火牆命令

centos關閉防火牆命令的步驟如下:

centos關閉防火牆命令

1、首先打開xshell軟件連接到centos主機,使用命令“systemctl status firewalld.service”查看防火牆狀態。

2、按下回車鍵執行後,可以看到標註的“active(running)”,説明防火牆是開啟狀態。

3、命令行裏敲入命令“systemctl stop firewalld.service”,可以關閉運行的防火牆。

4、關閉後再使用命令systemctl status firewalld.service查看防火牆狀態,如果出現disavtive(dead)的字樣,説明防火牆已經關閉。

5、若設置永久關閉防火牆,則輸入命令“systemctl disable firewalld.service”,即可永久禁止防火牆服務,下次重啟也不會開啟。

TAG標籤:命令 關閉 centos 防火牆 #