2 Minutes To Code (β Version)

Apache Tomcat - 2 minute tutorial

How to configure start and stop port of tomcat

The port on which the tomcat server listens for incoming http requests is configured in server.xml file ( located in $TOMCAT_DIR/conf folder )in the 'Connector' element with the attribute protocol="HTTP/1.1". The default value is 8080. Change it to any appropriate port.

There is one more port of interest. This is the the shutdown port that is configured as port attribute of the 'Server' element.

If any of these two ports are used by some other service, then tomcat will fail to start-up.