进入改端口文件里面
添加12345端口
查看防火墙状态
去防火墙配置文件里面添加规则。
添加12345和3306规则。
重启防火墙。
去SELINUX配置文件里面更改关闭SELINUX文件。把SELINUX=改disabled.
先用setenforce 0关闭,配置文件等重启系统生效.最后最后重启SSH service sshdrestart和防火墙 service iptables start ,chkconfig iptables on原文:http://blog.51cto.com/13730321/2120544