Modify Tomcat port number

Source: Internet
Author: User

To modify the Tomcat port number, follow these steps:
1. Find the conf folder in the Tomcat directory.
2. Go to the conf folder and find the server. xml file.
3. Open the server. xml file
4. Find the following information in the server. xml file:
<Connection Port = "8080"
Maxthreads = "150" minsparethreads = "25" maxsparethreads = "75"
Enablelookups = "false" redirectport = "8443" acceptcount = "100"
Connectiontimeout = "20000" disableuploadtimeout = "true"/>
5. Change Port = "8080" to Port = "8888" and save
6. start Tomcat and enter http: // 127.0.0.1: 8888/in the address bar of the IE browser/
If a cat or other information appears, the port number is successfully modified!
 
Bytes ---------------------------------------------------------------------------------------------
 
Refer to the following online information
 

Http://blog.chinaunix.net/u2/72940/showart.php? Id = 1086484

Every time we run a web project, we need to be in the Tomcat environment. You also know that its default port number is 8080.
When you want to use this port number and run a web project, you need to know how to modify its default port.
Practice:
 
Sequentially open jakarta-tomcat-5.5.9/CONF/server. XML to find the following code:
<Connector Port = "8080" maxhttpheadersize = "8192"
Maxthreads = "150" minsparethreads = "25" maxsparethreads = "75"
Enablelookups = "false" redirectport = "8443" acceptcount = "100"
Connectiontimeout = "20000" disableuploadtimeout = "true"/>
This 8080 is the port number it uses. We can change it to 80 (the default port of the browser ).
When editing it, enter http: // localhost/your project name OK to access it!
 
Server. xml can be used to modify the port number and other configurations of the current server.
Bytes ---------------------------------------------------------------------------------------------

Http://blog.csdn.net/huige1004/archive/2007/09/03/1769789.aspx

After Oracle is installed, an error occurs when Tomcat is started:

Error starting endpoint
Java.net. BindException: Address already in use: JVM_Bind: 8080

The Oracle Servlet Engine also uses port 8080. Then modify the Tomcat Port:

The Prime Minister finds the Tomcat 5.0/conf/server. xml file and then finds the following code:

Port = "8080" maxThreads = "150" minSpareThreads = "25" maxSpareThreads = "75"
EnableLookups = "false" redirectPort = "8443" acceptCount = "100"
Debug = "0" connectionTimeout = "20000"
DisableUploadTimeout = "true"/>

Modify port = "8080.

This article from the CSDN blog, reproduced please indicate the source: http://blog.csdn.net/lijiazhi1987/archive/2008/08/06/2774043.aspx

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.