How to change Apache Tomcat running port

Go to conf folder of your apache tomcat installation.
Open server.xml file.

Method 1
Search for (Ctl+F) "Connector port" key word there. In the first matching occurence change the port value to the value which you wish.
For better accuracy make sure the current port value in the first matching occurence is equal to the port which the tomcat currently running.
restart tomcat.


Method 2
Find the port which tomcat currently running.
Search for (Ctl+F) the current port in server.xml file and change it to the value you want.
restart tomcat.

Comments

Popular posts from this blog

Manually install a maven dependency

PHP-SOAP web service with out a WSDL

Axis 2 web services in eclipse: Exception java.lang.NoClassDefFoundError: org/apache/http/HttpResponseFactory thrown when Services link clicked