I can install them to different directories, and I think I can make them use different ports, as well.
I'm going to add 10000 to each port number for the second installation, and 20000 to the third installation, if I have to do three. <<< NOTE: As @DopeGhoti commented, it's better to have them bind to different IP addresses, rather than different ports.
I found this as a way to run them with separate ports by editing /conf/server.xml, but it seems to be for TomCat 6 on Windows, which are both pretty outdated:
http://crunchify.com/how-to-run-multiple-tomcat-instances-on-one-server/
Do I need a separate init script, though?
Say, /etc/init.d/tomcat_2.sh
, or something like that?
Maybe this is too general, but seems like the sort of thing that one could easily screw up without the right concepts in mind.
/etc/init.d/tomcat.sh start
again, I'd imagine.<Host>
stanzae in each Tomcat versions'server.xml
files (i. e. one for tomcat6; one for tomcat7, et cetera). Then all tomcat6 instances would be controlled by e. g./etc/init.d/tomcat6 start|stop
orservice tomcat6 start|stop
.//,
: this isn't failbook...