标签:
vi /etc/sysconfig/iptables加入你要访问的端口号
-A INPUT -m state --state NEW -m tcp -p tcp --dport 22 -j ACCEPT
-A INPUT -m state --state NEW -m tcp -p tcp --dport 8081 -j ACCEPT
-A INPUT -m state --state NEW -m tcp -p tcp --dport 8080 -j ACCEPT
-A INPUT -m state --state NEW -m tcp -p tcp --dport 8088 -j ACCEPT
重启服务:service iptables restart
标签:
原文地址:http://my.oschina.net/stonezing/blog/502673