Linux 开放端口查看修改
查看开放端口?
/etc/rc.d/init.d/iptables?status???
?
添加需要的端口号,例如mysql的3306?
/sbin/iptables?-I?INPUT?-p?tcp?--dport?3306?-j?ACCEPT
保存并重启服务
/etc/rc.d/init.d/iptables?save
/etc/rc.d/init.d/iptables?restart