Unable to open debugger port (127.0.0.1:55017): java.net.SocketException "Socket closed"


遇到问题

项目以前启动正常,突然报错,启动不起来了,报了个Unable to open debugger port (127.0.0.1:55017): java.net.SocketException "Socket closed"这个错。

报错

查了其他的有说是端口被占用。然后按照步骤,改了debug的端口,没有生效。


解决步骤:

1.打开Event Log(View->Tool Window->Event Log)

11:23   Error running 'distrib-web': Cannot run program "/Users/mac/apache/apache-tomcat-7.0.86/bin/catalina.sh" (in directory "/Users/mac/apache/apache-tomcat-7.0.86/bin"): error=13, Permission denied

11:23   Error running 'distrib-web': Unable to open debugger port (127.0.0.1:5521): java.net.SocketException "Socket closed"

可以看出来是权限不够引起的错误。
2.加权限

chmod a+x catalina.sh

3.启动~完成


小伙伴们遇到类似的情况,先静下心来打开Event Log看看具体发生了啥,再想想怎么解决哦

你可能感兴趣的:(Unable to open debugger port (127.0.0.1:55017): java.net.SocketException "Socket closed")