1.在/etc/sysconfig/iptables里添加 -A RH-Firewall-1-INPUT -m state --state NEW -m tcp -p tcp --dport 8080 -j ACCEPT 2.重启iptables [root@localhost ~]# /etc/init.d/iptables restart 3.看下状态 [root@localhost ~]# /etc/init.d/iptables status
防火墙添加端口
猜你喜欢
转载自lncdzh.iteye.com/blog/2299746
今日推荐
周排行