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

参考文章:https://blog.csdn.net/define_LIN/article/details/84033733

场景描述:

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

Description:

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

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

       由于我是关闭了之后才来整理这篇文章,图片的内容将就看一下,如果以后再遇到这个问题,我再来更新

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的端口号占用了这个端口号,关闭占用端口号的进程后,再重新启动项目就可以了。