JavaWeb(2)_myEclipse_端口被占用

来源:互联网 发布:vod网络媒体播放器 编辑:程序博客网 时间:2024/06/03 08:20

 Several ports (8005,8080, 8009) required by Tomcat v7.0 Server at localhost are already in use.The server may already be running in another process, or a system process may be using the port. To start this server you will need to stop the other process or change the port number(s).


解决方法:

win+r cmd 输入 netstat -ano|findstr 8080(我的是8080被占用了)

回车后显示一行,最右边为占用端口的程序编号

输入 taskkill /pid 3760 /f

Microsoft Windows [版本 6.1.7601]
版权所有 (c) 2009 Microsoft Corporation。保留所有权利。


C:\Users\Administrator>netstat -ano|findstr 8080
  TCP    0.0.0.0:8080           0.0.0.0:0              LISTENING       3760


C:\Users\Administrator>taskkill /pid 3760 /f
成功: 已终止 PID 为 3760 的进程。


C:\Users\Administrator>


原创粉丝点击