Several ports (8005, 8080, 8009) required by Tomcat

时间:2022-08-29 22:42:29
Several ports (8005, 8080, 8009) required by Tomcat

转载:http://blog.csdn.net/tomoto_zh/article/details/51931945

先找到Java项目中  Servers找到Server.xml然后

把8005, 8080, 8009全部改为8885, 8888, 8889,重新运行项目就ok了。

(为了避免麻烦,我连同Tomcat 9.0\conf中的server.xml文件也一起改了。)

-----------------------------------------------------------------------------------

如果在遇到这个问题:

使用eclipse的时候出现这个问题:Several ports (8005, 8080, 8009) required by Tomcat v7.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).

这是因为已经启动了tomcat,只是在eclipse里面看不到。

这时只需要找到tomcat的目录,在bin文件夹里面找到shutdown.bat执行一下,再去eclipse里面启动tomcat就成功了!

Several ports (8005, 8080, 8009) required by Tomcat