安裝oracle11g後用plsql一直連不上,發現是linux防火牆阻止了。
使用service iptables stop後連接成功。
可是系統重啓後防火牆又自動啓動了。
所以要使用這個命令:
chkconfig iptables off
防火牆在系統重啓後也不會自動啓動了。
1) 重啓後生效
開啓: chkconfig iptables on關閉: chkconfig iptables off
2) 即時生效,重啓後失效
開啓: service iptables start
關閉: service iptables stop
經驗證這種方法不老管用。
查看開機自啓動服務列表:
[root@localhost ~]#chkconfig --list
或者直接查看防火牆的設置:
[root@localhost ~]#chkconfig |grep iptables
iptables 0:off 1:off 2:on 3::on 4:on 5:on 6:off
使用命令
[root@localhost ~]#chkconfig --level 2345 iptables off
[root@localhost ~]#reboot
生效
附
[root@localhost ~]# chkconfig --add servicename 添加開機自動啓動servicename服務
[root@localhost ~]# chkconfig --del servicename 刪除開機自動啓動servicename服務