1,修改 etc/sysconfig/iptables
增加一行(8080):
-A RH-Fireall –1-INPUT –m state –state NEW –m tcp –dport 8080 –j ACCEPT
重启 iptables
service iptables restart
2,重启防火墙
a),重启后生效
开启:chkconfig iptables on
关闭:chkconfig iptables off
b),即时生效,重启后失效
开启:service iptables start
关闭:service iptables stop