Tomcat # 启动tomcat出现 Unable to open debugger port (127.0.0.1:53104): java.net.SocketException “.....“

今天以debug方式运行tomcat的时候突然提示:Unable to open debugger port (127.0.0.1:53104): java.net.SocketException "Interrruted function call:accept failed",一般来说这个是指端口被占用了。

方案1

打开idea的Event Log查看其被占用的端口号。一般为1099。

然后打开cmd,输入  netstat -ano|findstr 端口号  ,得到被占用的进程端口号。

再运行: taskkill -f -pid  进程端口号杀进程

方案2

以IDEA为例,修改运行时需要端口。

方案3

可能存在的情况: 要是之前运行正常,修改了Tomcat的某些配置文件后,无法运行,证明配置文件的修改发生错误。改回之前的样子即可。

猜你喜欢

转载自blog.csdn.net/qq_38134242/article/details/112276569