做为初学者使用Linux时都会关闭自带的防火墙。
下面是操作过程以Centos6.5为例:[root@zdw ~]# /etc/init.d/iptables stop //关闭
iptables: Setting chains to policy ACCEPT: filter [ OK ]
iptables: Flushing firewall rules: [ OK ]
iptables: Unloading modules: [ OK ]
[root@zdw ~]# /etc/init.d/iptables stop //重复执行确认关闭
[root@zdw ~]# chkconfig iptables off //关闭开机自启动,3表示文本模式
[root@zdw ~]# chkconfig --list|grep ipta
iptables 0:off 1:off 2:off 3:off 4:off 5:off 6:off
参考:
老男孩Linux