Change port number in Tomcat

Hi All,

Sometime we encounter a situation where we start facing a problem of port confliction with other services with Tomcat Server. In Tomcat changing a port is quite very Easy. And can perform the same activity on all the versions.

Below I will show how to change the Tomcat default port 8080 to 8089.

Steps:

1. Go to Tomcat Root/conf

2  Locate the Server.xml

3  In Server.xml, Find the below lines

<!– Define a non-SSL HTTP/1.1 Connector on port 8080 –>

<Connector port=”8080″/>

4 Now change the 8080 to 8089

5 Restart the tomcat and access the application on newly changed port. e.g http://localhost:8089/myApp/

Hope this helps.

Thanks

R Vashi

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s