做爲初學者使用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