码迷,mamicode.com
首页 > 其他好文 > 详细

tomcat端口号被占用

时间:2016-06-14 15:33:00      阅读:283      评论:0      收藏:0      [点我收藏+]

标签:

Eclipse启动TomCat报错:Several ports (8080, 8009) required by Tomcat v8.0 are already in use.

 

Eclipse启动Tomcat错误:

Several ports (8080, 8009) required by Tomcat v8.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).

 

可以判断8080、8009端口已经被占用,通过以下方法,找出被哪个进程占用:

 

在windows框中,输入netstat -aon | findstr 8080

 

技术分享

 

获得该端口被PID为8060的进程占用

输入tasklist |findstr 8060:

 

技术分享

 

可以获得当前端口被javaw.exe占用

继续输入taskkill -F -IM javaw.exe或taskkill /pid 8060 /F

结束该进程

再次在eclipse中启动tomcat正常

 

技术分享

tomcat端口号被占用

标签:

原文地址:http://www.cnblogs.com/fmling/p/5583988.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!