Changing the default port number in Apache Tomcat

| No Comments

I had to run two webservers on my machine at the same time. Since both of them used port 8080 , the easiest way to run the two servers at the same time was to modify the port number on one of them. tomcat.gif
Here is how we can change the port number in Apache Tomcat:

1. Navigate to : Apache Software Foundation\Tomcat X.X\conf
2. Modify the Server.xml file:

<!-- Define a non-SSL HTTP/1.1 Connector on port 8080 -->
<Connector port="8080" ... />

Modify this to another non-conflicting port ( I changed it to 8888).

Happy Coding



Leave a comment

About this Entry

This page contains a single entry by Armaghan published on September 11, 2009 9:25 AM.

XML Manipulation in Flex and ActionScript was the previous entry in this blog.

Finding out the Oracle Version using SQL is the next entry in this blog.

Find recent content on the main index or look in the archives to find all content.

Categories