關閉防火牆 aboutyun

2021-10-01 08:12:13 字數 838 閱讀 9765

先檢視防火牆的狀態sudo systemctl status firewalld.service

如果是active: active (running),表示正在執行的狀態,開啟的狀態。所以要關閉掉。

輸入命令:sudo systemctl stop firewalld.service,關閉完成後

但是還要禁止下次開機重啟,所以還有乙個禁止啟動項配置

輸入命令:sudo systemctl disable firewalld.service

到此,則完成了關閉防火牆任務

上面是7.0版本以上的

但是6.0版本的是如下

輸入service  iptables stop(暫時關閉防火牆命令)  ||也可永久關閉:chkconfig iptables off

關閉防火牆

linux系統中,有時候要檢查防火牆是否開啟或者需要關閉,以下是兩種情形。1 重啟後生效 開啟 chkconfig iptables on 關閉 chkconfig iptables off 2 即時生效,重啟後失效 開啟 service iptables start 關閉 service ipta...

關閉防火牆

關閉防火牆 sed ri s selinux selinux disabled g etc selinux config 關閉selinux systemctl stop firewalld 臨時關閉防火牆 systemctl disable firewalld 設定防火牆開機自動關閉 system...

關閉防火牆

下面是red hat centos7關閉防火牆的命令 1 檢視防火狀態 systemctl status firewalld service iptables status 2 暫時關閉防火牆 systemctl stop firewalld service iptables stop 3 永久關閉...