错误: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端口被占用。
解决方案一:
1.进入DOS模式,使用 netstat -aon|findstr "8080" 来查看 8080 端口使用情况。
可以看出8080端口被 PID号为10464的程序占用。
2.使用命令 tskill 10464 杀死进程 10464
此时可以看到端口不再被占用。
解决方案二:
进入tomcat的配置文件。
将8080端口修改为没有被占用的端口号即可。