本来为启动不同服务,而设置了不同端口,但是一不小心端口设置过大,比如70000
然后报错为
/Users/caifeng/Documents/Programing/Java/apache-tomcat-8.0.39/bin/catalina.sh run
ERROR: transport error 202: connect failed: Connection refused
ERROR: JDWP Transport dt_socket failed to initialize, TRANSPORT_INIT(510)
JDWP exit error AGENT_ERROR_TRANSPORT_INIT(197): No transports initialized [debugInit.c:750]
Disconnected from server
原因是 服务器的连接数因为端口数限制不能超过65535个.
我是在mac 环境下 的intellij, 但是win下的eclipse也有人遇到过这种问题. 朋友在用其他方法解决该问题时可以看看自己debug设置的port端口数是否正确.