错误: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端口修改为没有被占用的端口号即可。
本文介绍了当Eclipse启动Tomcat遇到8080端口被占用的问题时的两种解决方案:一是通过命令行找到并终止占用端口的进程;二是更改Tomcat配置文件中的端口号。

436

被折叠的 条评论
为什么被折叠?



