Monday, 13 January 2014

Changing default connector port in Tomcat

In my previous post about Tomcat manager, I said about changing the default port in Tomcat. So here's a quick small post about how we can change the default connector port 8080 in Tomcat.

Browse the apache installation folder and check for the file - server.xml. It's usually located under the conf folder.

By making a small edit in this file - server.xml, we can change the default port 8080 to some other port eg: 8081 or 8085. Scroll down till you find the tag for connector port. Check the screenshot below for reference.


Now all you have to do is modify the Connector port from default 8080 to any number like 8081, 8082, 8085 as you wish to. This is especially useful if you use any other application or web application server or service (eg: Hudson for continuous builds) which also uses port 8080.

No comments:

Post a Comment

Related Posts Plugin for WordPress, Blogger...
eXTReMe Tracker