SpringBoot项目无法启动,端口被占用Address already in use;The port may already be in use ;

场景描述:

      项目以前都是正常启动,今天突然启动不了了,并提示如下错误,由于端口号等已经报给大框架的负责人,修改端口号好像不太合适,怕修改配置文件,再上传又会有什么冲突的问题,我的解决办法是去结束占用这个端口号的进程。

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.

       使用Win+R,输入“cmd”进入“命令提示符”,输入命令 netstat -aon|findstr "8090"

SpringBoot项目无法启动,端口被占用Address already in use;The port may already be in use ;

 

       在“任务管理器”中找到对应的pid并右键,点击“结束任务”

SpringBoot项目无法启动,端口被占用Address already in use;The port may already be in use ;

       我的情况是,本地oracle的端口号占用了这个端口号,关闭占用端口号的进程后,再重新启动项目就可以了。

 

文章来源:https://blog.csdn.net/HenryMrZ/article/details/89376440