项目启动报错端口被占用

一时失言乱红尘 2024-03-30 14:01 188阅读 0赞

报错如下:

  1. Description:
  2. The Tomcat connector configured to listen on port 20000 failed to start. The port may already be in use or the connector may be misconfigured.
  3. Action:
  4. Verify the connector's configuration, identify and stop any process that's listening on port 20000, or configure this application to listen on another port.

解决如下:

使用Win+R,输入“cmd”进入“命令提示符”,输入命令

  1. netstat -aon|findstr "10000"

可以看到占用的进程号

在这里插入图片描述
在 “任务管理器” 中找到对应的 pid

右键,点击 “结束任务”

在这里插入图片描述

发表评论

表情:
评论列表 (有 0 条评论,188人围观)

还没有评论,来说两句吧...

相关阅读