做为初学者使用Linux时都会关闭自带的防火墙。
下面是操作过程以Centos6.5为例:
<code>[root@zdw ~]</code><code># /etc/init.d/iptables stop //关闭</code>
<code>iptables: Setting chains to policy ACCEPT: filter [ OK ]</code>
<code>iptables: Flushing firewall rules: [ OK ]</code>
<code>iptables: Unloading modules: [ OK ]</code>
<code>[root@zdw ~]</code><code># /etc/init.d/iptables stop //重复执行确认关闭</code>
<code>[root@zdw ~]</code><code># chkconfig iptables off //关闭开机自启动,3表示文本模式</code>
<code>[root@zdw ~]</code><code># chkconfig --list|grep ipta</code>
<code>iptables 0:off 1:off 2:off 3:off 4:off 5:off 6:off</code>
本文转自cix123 51CTO博客,原文链接:http://blog.51cto.com/zhaodongwei/1762526,如需转载请自行联系原作者