Eclipse Tomcat several ports (8005, 8080, 8009) port occupied problem solution

Source: Internet
Author: User
Tags server port

Today, an Eclipse development environment was built on the test server, and then a small program was written and posted to tomcat. Because there is already a tomcat7.0 on the service, and Eclipse builds a tomcat8.5, an error is reported when the tomcat8.5 is started, as follows:

Several ports (8005, 8080, 8009) required by Tomcat v8.5 Server at localhost are. The server may already is running in another process, or a system process may is using the port. To start this server you'll need to stop the other process or change the port number (s).

English is not very good, but it doesn't look too difficult. Prompt Port 8005,8080,8009 is occupied, two solutions:

One, the service tomcat7.0 stop, this one does not recommend;

Modifying the port of Server.xml in tomcat8.5 or tomcat7.0;

Locate the Tomcat installation path and the Server.xml in the C:\XX\apache-tomcat-8.5.9\conf folder find the corresponding

<server port= "8005" shutdown= "shutdown" > read

<server port= "8015" shutdown= "Shutdown" >


<connector port= "8080" protocol= "http/1.1" connectiontimeout= "20000" redirectport= "8443"/> to read

<connector port= "8088" protocol= "http/1.1" connectiontimeout= "20000" redirectport= "8443"/>


<connector port= "8009" protocol= "ajp/1.3" redirectport= "8443"/> instead

<connector port= "8019" protocol= "ajp/1.3" redirectport= "8443"/>

Just reboot.

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.