eclipse tomcat报Several ports (8005, 8080, 8009) 端口被占用问题解决方案

今天,在测试服务器上搭建了一个eclipse开发环境,然后写了一个小程序,发布到tomcat上。由于在服务上已有一个tomcat7.0,而eclipse又搭建了一个tomcat8.5,在启动tomcat8.5时,报了一个错误,如下:

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).

英语不太好,但是看起来不是太难!提示端口8005,8080,8009被占用,两种解决方案:

一、将服务tomcat7.0停止,这一种不推荐;

二、修改tomcat8.5或者tomcat7.0中server.xml的端口;

找到tomcat安装路径,C:\XX\apache-tomcat-8.5.9\conf文件夹下的server.xml找到相应的

改为

8015" shutdown="SHUTDOWN">

 

改为

8088" protocol="HTTP/1.1"connectionTimeout="20000" redirectPort="8443" />

 

改为

8019" protocol="AJP/1.3" redirectPort="8443" />

重新启动就好了!

你可能感兴趣的:(Eclipse)