查看

service iptables status

修改

vim /etc/sysconfig/iptables

模仿22端口开放命令添加如图所示的一行即表示对外开放3306端口
linux上暴露端口

重启网卡

service iptables restart

相关文章: