學而時習之
Linux B2D Python PostgreSQL MySQL Excel VBA CentOS VirtualBox Ubuntu OpenOffice.org Basic
2008年9月12日 星期五
手動打開 CentOS的 port
手動打開 CentOS的 port
1- 編輯iptables vi /etc/sysconfig/iptables
2- 添加新規則 (vi 用yy,然後 p)
-A RH-Firewall-1-INPUT -m state --state NEW -m tcp -p tcp --dport 5432 -j ACCEPT
3- 重新啟動服務 /sbin/service iptables restart
4- 查看埠是否開放 /sbin/iptables -L –n
沒有留言:
張貼留言
較新的文章
較舊的文章
首頁
訂閱:
張貼留言 (Atom)
沒有留言:
張貼留言