报错:The Tomcat connector configured to listen on port xxxx failed to start. The port may already be
作者:mmseoamin日期:2023-12-21

APPLICATION FAILED TO START

Description:

The Tomcat connector configured to listen on port xxxx failed to start. The port may already be in use or the connector may be misconfigured.

Action:

Verify the connector’s configuration, identify and stop any process that’s listening on port xxxx, or configure this application to listen on another port.

原因: 当遇到 The port may already be in use or the connector my be misconfigured.这个错误时,居多是因为上一次项目正在启动时,由于其他非正常原因导致服务宕机等现象。当重启动项目时该端口被占用。

解决办法:

报错:The Tomcat connector configured to listen on port xxxx failed to start. The port may already be,第1张

 或者:win+r 输入cmd,快捷启动

1.查询本地已被占用的端口号

netstat -aon|findstr "xxxx"  

报错:The Tomcat connector configured to listen on port xxxx failed to start. The port may already be,第2张

 2.杀死"xxxx"端口号的进程

taskkill /T /F /PID "5932"

报错:The Tomcat connector configured to listen on port xxxx failed to start. The port may already be,第3张 

 当出现"成功"字样时,代表杀死进程成功!

3.重新启动程序!