开启8080端口 iptables -I INPUT 4 -p tcp -m state --state NEW -m tcp --dport 8080 -j ACCEPT service iptables save #保存iptables规则 查看iptables 规则 iptables -nvL 来源:oschina链接:https://my.oschina.net/u/555639/blog/4278250 标签 iptables bash CentOS mTCP