与谁同坐,明月清风我|

于北往南

园龄:6年9个月粉丝:2关注:10

Windows端口被占用解决方法

Error 场景

启动 Java 项目失败,控制台显示


Error starting ApplicationContext. To display the conditions report`re-run your application with 'debug' enabled.

***************************
APPLICATION FAILED TO START
***************************

Description:

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

解决方法

  • 查看那些进程占用了我们的端口号8080

    打开 Windows 控制台,输入命令

netstat -nao | findstr "8080"

可以看到占用 8080 端口的进程 PID 为 8404

  • 杀死相应进程:

    在 Windows 控制台,继续输入命令

taskkill /pid 8404 /f

avatar

本文作者:于北往南

本文链接:https://www.cnblogs.com/GardenofEden/p/14577262.html

版权声明:本作品采用知识共享署名-非商业性使用-禁止演绎 2.5 中国大陆许可协议进行许可。

posted @   于北往南  阅读(137)  评论(1编辑  收藏  举报
点击右上角即可分享
微信分享提示
评论
收藏
关注
推荐
深色
回顶
收起