在linux中关闭防火墙

1) 重启后生效 
开启: chkconfig iptables on
关闭: chkconfig iptables off

2) 即时生效,重启后失效
开启: service iptables start
关闭: service iptables stop

service iptables status可以查看到iptables服务的当前状态。
但是即使服务运行了,防火墙也不一定起作用,你还得看防火墙规则的设置 iptables -L
 

posted on 2016-09-29 18:56  吃咯  阅读(354)  评论(0编辑  收藏  举报

导航