Error logging-Changing the Tomcat port number method, several ports (8005, 8080, 8009)

Source: Internet
Author: User
Tags tomcat server

Start Tomcat Server error:

Several ports (8005, 8080, 8009) required by Tomcat v5.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).

Cause: Port 8005, 8080, 8009 are occupied. It is possible that eclipse was turned off with Tomcat turned on, or that eclipse was shut down abnormally, causing the previous tomcat not to be closed and the port occupied. or other software that takes up the Tomcat's port number.

Workaround:
Method 1: Kill the software that occupies the port.

Open Task Manager, locate the Java Virtual machine-related process javaw.exe, and end it. If the problem is not resolved, look down.
If there is no such process, it may be that other software is taking up the port.
In the Start menu-> run->cmd-> enter Netstat-ano or Netstat-an | The grep 8080 command lets you see which process occupies 8080 and 8009 ports, finds the PID for the Port software, and then finds the software that corresponds to the PID in Task Manager and closes the process. If the PID column is not displayed in Task Manager, you need to set it up, view---Select column---, and tick the PID (process identifier).



Method 2: Modify the Tomcat default port number.

Modify the Tomcat configuration file.
For example: C:/tomcat5.5.25/conf/server.xml
<connector port= "8080" maxhttpheadersize= "8192"
maxthreads= "minsparethreads=" maxsparethreads= "75"
Enablelookups= "false" redirectport= "8443" acceptcount= "100"
connectiontimeout= "20000" disableuploadtimeout= "true"/>

Connector node, change the port in port= "8080" to a port that is not occupied.


(edited again)

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.