端口占用问题的解决办法

来源:互联网 发布:sql 删除表中的行 编辑:程序博客网 时间:2024/06/07 14:54

早上到公司启动项目时候发现端口被占用  报错如下:


***************************

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.


解决办法:

1.打开cmd命令窗口  输入如下指令查看所有端口和PID


2.找到对应的端口对应的PID  输入指令 tasklist | findstr "8204" 找到对应的进程


3.杀掉该进程  taskkill /f /t /im javaw.exe 再次启动就OK啦


原创粉丝点击