Setting default port number for Tomcat

by Ramya 2008-09-01 20:01:03

To change tomcat default port number from 8080 to other number use the following.

> Go to "D:\Program Files\Apache Group\Tomcat 5.0\conf"
> Open "server.xml"

> Search for the following line,

<Connector port="8080" maxThreads="150" minSpareThreads="25" maxSpareThreads="75"
enableLookups="false" redirectPort="8443" acceptCount="100" debug="0" connectionTimeout="20000" disableUploadTimeout="true" />



There set port="8080" to the port number you wish to run the Tomcat.
Restart Tomcat and run the file.

For eg,
if you set the port number to 9090 as,

<Connector port="9090" maxThreads="150" minSpareThreads="25" maxSpareThreads="75"
enableLookups="false" redirectPort="8443" acceptCount="100" debug="0" connectionTimeout="20000" disableUploadTimeout="true" />


Restart tomcat and run the file as,
localhost:9090/test/test.jsp.

Tagged in:

1001
like
0
dislike
0
mail
flag

You must LOGIN to add comments