Eclipse启动Tomcat错误

Eclipse启动Tomcat错误:
Several ports (8080, 8009) required by Tomcat v6.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端口已经被占用,通过以下方法,找出被哪个进程占用:
在命令提示符下,输入netstat -aon | findstr 8080

获得该端口被PID为848的进程占用
输入tasklist |findstr 848:

可以获得当前端口被javaw.exe占用
继续输入taskkill -F -IM javaw.exe或taskkill /pid 848 /F
结束该进程
再次在eclipse中启动tomcat正常

这种是强行关闭端口所占进行,并且将服务也停了,eclipse 中的tomcat 服务还是用不了,所以当运行eclipse server 服务时tomcat服务会自动启动,则不需要单独启动tomcat服务,如果这时tomcat 服务也启动了则会冲突,所以如果要运行eclipse 的server服务就关掉tomcat服务,二者开启一个.

猜你喜欢

转载自xieweiseo.iteye.com/blog/2268246
今日推荐