Friday, April 1, 2011

How to change the Tomcat Port?

1) Locate server.xml in {Tomcat installation folder}\ conf \

2). There you will find,

     port="8080" maxHttpHeaderSize="8192"
maxThreads="150" minSpareThreads="25" maxSpareThreads="75"
enableLookups="false" redirectPort="8443" acceptCount="100"
connectionTimeout="20000" disableUploadTimeout="true" />

or

port="8080" protocol="HTTP/1.1"
connectionTimeout="20000"
redirectPort="8443" />

3). TO Change the port from 8080 to 8008,
Modify the above content like this,

port="8008" protocol="HTTP/1.1"
connectionTimeout="20000"
redirectPort="8443" />


4). Now the Tomcat will work in port 8008.

No comments:

Post a Comment