摘要:
在关闭防火墙之前需要查看防火墙的状态,可以使用service iptables status命令来查看,确定防火墙是否开启再来进行关闭操作。如果想临时开启防火墙使用命令service iptables start,立即生效,重启后失效;想关闭防火墙使用service iptables stop,立即生效,重启后失效;要永久开启防火墙使用命令chkconfig iptables on,重启后生效;想永久关闭防火墙使用命令chkconfig iptables off,重启后生效。所以关闭防火墙一般都是先执行service iptables stop,再执行chkconfig iptables of 阅读全文