linux關閉防火墻命令是什么?最近有不少朋友們想要知道linux永久關閉防火墻的命令,但是不知道怎么操作。今天小編就來給各位朋友們詳細說明一下吧。
rhel6關閉防火墻
ervice iptables status 查看當前防火墻狀態
1. 永久性生效
開啟:chkconfig iptables on
關閉:chkconfig iptables off
2. 即時生效,重啟后失效
開啟:service iptables start
關閉:service iptables stop
rhel7關閉防火墻的方法為:
systemctl status firewalld 查看當前防火墻狀態
1. 永久性生效
開啟:systemctl enable firewalld
關閉:systemctl disable firewalld
2. 即時生效,重啟后失效
開啟:systemctl start firewalld
關閉:systemctl stop firewalld

以上就是linux永久關閉防火墻命令分享了,希望對各位朋友們有所幫助。

閩公網安備 35020302033304號


網友評論