Running multiple tomcat servers

16,843

Solution 1

You need to change the port on which your connector listens for at least one of them -- 6060 for version 6 and 7070 for version 7 sound good and memorable to me.

Note that this works for more than just different versions of Tomcat -- different configurations of the same version of Tomcat can listen on different ports this way too.

Solution 2

This question is already answered.

Only intent of this new thread to help the beginners, with the help of screenshots.

Follow below steps,

  • Download and unzip the folder into your PC
  • open server.xml file under conf folder.
  • under connector tag update port number. screen shot of server.xml and connector tag

Repeat the same steps and change the port number for creating another instance of tomcat.

Share:
16,843
Sarin Jacob Sunny
Author by

Sarin Jacob Sunny

Updated on June 04, 2022

Comments

  • Sarin Jacob Sunny
    Sarin Jacob Sunny almost 2 years

    I have installed tomcat 6 and 7 to the port 8080.

    I am using tomcat 6 for deploying my projects in local LAN by loading files from its web apps.

    At the same time I am using eclipse ide for developing purpose.

    When ever I have to run my project from eclipse using tomcat7, I have to stop the tomcat6.

    Is it possible to change the port of tomcat?

    What I want is to run both the servers at the same time.

    Thanks in advance..