eclipse启动不了tomcat,显示Several ports (8005, 8080, 8009) required by Tomcat v8.5 Server at localhost

使用eclipse跑不起项目,报错提示:

Several ports (8005, 8080, 8009) required by Tomcat v8.5 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就成功了!
eclipse启动不了tomcat,显示Several ports (8005, 8080, 8009) required by Tomcat v8.5 Server at localhost_第1张图片

你可能感兴趣的:(java)