将3306替换为要开放端口号即可

/sbin/iptables -I INPUT -p tcp --dport 3306 -j ACCEPT

 

Logo

更多推荐