linux關(guān)閉防火墻命令是什么 linux永久關(guān)閉防火墻命令分享

2022-03-15 16:59

linux關(guān)閉防火墻命令是什么?最近有不少朋友們想要知道linux永久關(guān)閉防火墻的命令,但是不知道怎么操作。今天小編就來給各位朋友們?cè)敿?xì)說明一下吧。

rhel6關(guān)閉防火墻

ervice iptables status 查看當(dāng)前防火墻狀態(tài)

1. 永久性生效

開啟:chkconfig iptables on

關(guān)閉:chkconfig iptables off

2. 即時(shí)生效,重啟后失效

開啟:service iptables start

關(guān)閉:service iptables stop

rhel7關(guān)閉防火墻的方法為:

systemctl status firewalld 查看當(dāng)前防火墻狀態(tài)

1. 永久性生效

開啟:systemctl enable firewalld

關(guān)閉:systemctl disable firewalld

2. 即時(shí)生效,重啟后失效

開啟:systemctl start firewalld

關(guān)閉:systemctl stop firewalld

linux關(guān)閉防火墻命令是什么 linux永久關(guān)閉防火墻命令分享

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

網(wǎng)友評(píng)論

相關(guān)閱讀