防火墙未关闭导致连接一直是connecting状态解决方案:关闭CentOS7.0防火墙systemctl stop firewalld.service关闭开机启动:systemctl disable firewalld.serviceCentOS7使用firewalld打开关闭防火墙与端口