iptables -I INPUT -p tcp --dport=8080 -j ACCEPT #开放8080端口(Tomcat) iptables -I INPUT -p tcp --dport=3306 -j ACCEPT #开放3306端口(MySql)