SpringBoot 启动报错实例

Publish: July 13, 2021 Category: 编程 No Comments

启动中报告如下错误:

Description:

The Tomcat connector configured to listen on port 8090 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 8090, or configure this application to listen on another port.

说明已经有端口被占用,解决方案如下:

找到进程占用的端口号,以8080端口为例

如果是windows平台

netstat -ao | find "8080"

如果是其他平台

netstat -ao | find "8080"

杀掉进程以进程号是 20712 为例子

Taskkill /PID 20712 /F

如果是其他平台

kill -9 20712 

或者

kill 20712

Tags: springboot

Related Posts:

Leave a Comment