1. 程式人生 > >Linux下關閉防火墻步驟

Linux下關閉防火墻步驟

啟動 clas nbsp linux 自動 檢查 table init.d 是否

1 先查詢防火墻狀態

/etc/init.d/iptable status

2 關閉防火墻

/etc/init.d/iptable stop (執行2次怕1次關不上)

3 查看是否開機自動啟動 (數字3項)

[root@oldboy-09 ~]# chkconfig | grep iptables

iptables 0:off 1:off 2:on 3:on 4:on 5:on 6:off

4 關閉自動啟動

[root@oldboy-09 ~]# chkconfig iptables off

5 檢查是否關閉

[root@oldboy-09 ~]# chkconfig | grep iptables

iptables 0:off 1:off 2:off 3:off 4:off 5:off 6:off

Linux下關閉防火墻步驟