I am building a tomcat cluster on an EC2 instance... I'm using the Amazon Linux AMI so I used "yum install tomcat7" to install tomcat... I need to install another copy of tomcat.. yum puts files all over the place, not to mention the tomcat startup script. Is there an easy way to setup another instance without having to duplicate all those files by hand?

  • There is a per-service configuration file template at /etc/sysconfig/tomcat. Refer to the comment at the top of the file for instructions on setting up multiple Tomcat services on one Amazon Linux system. Feb 17, 2017 at 20:02

3 Answers 3


Well, don't use YUM then.

Simply download the tomcat from here.

After downloading, you can out it anywhere you want, like /usr/local/ or /opt/, where ever you want.

And then use the same.


Try installing the jpackage-repo, it resolves all of the dependencies for tomcat7. Install the rpm from this page to make installing the yum repo easy: http://jpackage.org/browser/rpm.php?jppversion=5.0&id=8559


you could try using multiple tomcat docker continers. https://hub.docker.com/r/uday1kiran/tomcatserver

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.