启动Tomcat服务器报错:
Several ports (8005, 8080, 8009) required by Tomcat v8.0 Server at localhost (3) 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).
原因:端口8005, 8080, 8009被占用了。可能是在打开Tomcat的情况下关闭了Eclipse,或是Eclipse非正常关闭,导致先前的Tomcat没有被关闭,端口占用。或是其他软件占用了tomcat的端口号。
解决方法:
1.打开dos窗口,查看占用端口的进程,输入netstat -ano|findstr 8080,如图
2.kill这个进程号,输入 taskkill /pid 78788 /f,如图
这样就成功了
本文介绍了解决启动Tomcat服务器时报错“所需端口被占用”的问题。通过使用命令行工具查找并终止占用相应端口的进程,实现成功启动Tomcat服务器。

1385

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



