Monday, June 1, 2020

How to change Default port for Tomcat | Change Tomcat Default port 8080

Tomcat default port is 8080. That can be changed by modifying server.xml of Tomcat.

Change port no from 8080
1. Locate server.xml, for Ubuntu it is at below location:

2. sudo vi /var/lib/tomcat8/conf/server.xml
Let's say you like to change from 8080 to 8090





you need to scroll down by clicking down arrow button in this file change the port no from 8080 to 8090 at line starting with <Connector port="8080">

Restart Tomcat after changes

sudo systemctl restart tomcat8

No comments:

Post a Comment