eclipse启动tomcat报错'Start Tomcat v8.0 Server at localhost' has encountered a problem.

错误:Start Tomcat v8.0 Server at localhost' has encountered a problem.Port 8080 required by Tomcat v8.0 Server at localhost is 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).

分析:eclipse启动tomcat是出现以下错误。根据具体描述Port 8080 required by Tomcat v8.0 Server at localhost is already in use.可以知道,是8080端口被占用。

eclipse启动tomcat报错'Start Tomcat v8.0 Server at localhost' has encountered a problem.

解决方案一:

1.进入DOS模式,使用 netstat -neo 查看端口使用情况。

 eclipse启动tomcat报错'Start Tomcat v8.0 Server at localhost' has encountered a problem.

可以看出8080端口被 PID号为90796的程序占用。

2.进入任务管理器再详细信息中找到PID为90796的程序。可见程序为javaw.exe.

eclipse启动tomcat报错'Start Tomcat v8.0 Server at localhost' has encountered a problem.

3.结束该运行程序。OK。 

解决方案二:

进入tomcat的配置文件。

eclipse启动tomcat报错'Start Tomcat v8.0 Server at localhost' has encountered a problem.

将8080端口修改为没有被占用的端口号即可。