Several ports (8005, 8080, 8009) required by Tomcat v7.0

Source: Internet
Author: User
Tags server port

problem: Port is occupied when publishing service to Tomcat

Several ports (8005, 8080, 8009) required by Tomcat v7.0 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).
Google translation (https://translate.google.cn): Several ports (8005,8080,8009) required for a Tomcat V7.0 server on a local host have been put into use. The server may already be running in another process, or a port that the system process can use. To start the server, you will need to stop other processes or change the port number.

Solution steps: Scenario One: stop Tomcat, and then reboot, that is, to stop Tomcat from the occupied port and restart your service Tomcat scheme two: find the server.xml below Tomcat


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

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

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


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

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


And then restart Tomcat





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.