centos socket通信时 connect refused 主要是防火墙问题,可以关闭防火墙,或者开放程序中的端口 转载于:https://www.cnblogs.com/prisoner/p/4554099.html