检测: 用netstat -na命令可以查看哪些端口正在被监听 解决: 用一个配置参数指定tcp程序所使用的端口号 转载于:https://www.cnblogs.com/rowsy/archive/2012/11/23/2838756.html