tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Bachler, Elisabeth \(Elisabeth\)" <ebach...@alcatel-lucent.com>
Subject RE: Several instancias of Tomcat on a same machine
Date Wed, 20 Dec 2006 17:18:42 GMT

Thanks for your quick answer. 
I want to run the 5 instances of tomcat  on Solaris. 
Let's have a look at the server.xml and let's make sure I have understood correctly what needs
to be done:

<Server port="8004">
....
<Connector acceptCount="100" connectionTimeout="20000" disableUploadTimeout="true" port="8081"
redirectPort="8443">
    </Connector>
    <Connector port="8009" protocol="AJP/1.3" protocolHandlerClassName="org.apache.jk.server.JkCoyoteHandler"
redirectPort="8443">
    </Connector>
.....
- The shutdown port (in this case ... 8004) has to be unique... 
   ===>  I can start with 8001 - 8002 ... Till 8005
- The http connector port (in this case .... 8081) has to be unique... ==> I can start
with 8080 - 8081 - ... Till 8084

 ===> What about the redirectPort??? Should it change?  <=====

 - The ajp connector (in this case .... 8009) has to be unique ..
   ==> I can start with 8009 -8010  till 8013 

 ==> Do I need to modify other procedures? <==

Thanks
Elisabeth


-----Original Message-----
From: Peter Crowther [mailto:Peter.Crowther@melandra.com] 
Sent: miƩrcoles, 20 de diciembre de 2006 17:49
To: Tomcat Users List
Subject: RE: Several instancias of Tomcat on a same machine

> From: Bachler, Elisabeth (Elisabeth)
> [mailto:ebachler@alcatel-lucent.com]
> I would like to download tomcat (5 times).

You'll only need to download it once.

Are you wanting to run this on Windows or Linux, and do you want to start the instances as
daemons/services or from the command line?

> I need 5 instances of tomcat
> on the same machine (tomcat1, tomcat2, etc).
> What do I have to configure in order to work.... I seem to remember I 
> need to modify the port but I cannot remember where!

The simple way:

- Get one Tomcat installed and working.

- Copy the installation.  Just once for now.

- Edit conf/server.xml.  Change the shutdown port (that's the one most people forget) and
the port in any Connectors that aren't commented out.

- Start this second installation using its startup.{bat,sh} and check it works.

- Now repeat the process for the other 3 now that you're sure what you want to change!

		- Peter

---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Mime
View raw message