Linux關(guān)閉防火墻命令
1) 永久性生效,重啟后不會復(fù)原
開啟:chkconfig iptables on
關(guān)閉:chkconfig iptables off
2) 即時生效,重啟后復(fù)原
開啟:service iptables start
關(guān)閉:service iptables stop
Centos參考:
centos 7:
systemctl stop firewalld.service #停止
systemctl disable firewalld.service #禁用
之前的版本:
service iptables stop #停止
chkconfig iptables off #禁用