当前位置: 代码迷 >> 综合 >> 【IDEA】IDEA debug 无法启动项目 Unable to open debugger port (127.0.0.1.50512)
  详细解决方案

【IDEA】IDEA debug 无法启动项目 Unable to open debugger port (127.0.0.1.50512)

热度:23   发布时间:2023-11-19 16:37:08.0

debug启动项目弹出提示 Error running omp: Unable to open debugger port (127.0.0.1:50812): java.net.SocketException "socket closed" 错误.导致项目无法启动.

打开 event log 发现有错误提示

Error running omp: Address localhost:1090 is already in use

发现其实是 1099 端口被占用

输入以下命令,查看 1099 端口号的占用

netstat -ano | find "1099"

这里看到的是 PID 为 9168 的进程占用 1099 端口,所以输入以下命令终止进程:

taskkill -f -pid 9168

taskkill -f -pid

重新启动就不会报错了

  相关解决方案