tomat multiple instance setup

http://www.shaunabram.com/multiple-tomcat-instances/

http://www.coderanch.com/t/550067/Tomcat/Starting-Stopping-multiple-instances-apache

http://kief.com/running-multiple-tomcat-instances-on-one-server.html

http://stackoverflow.com/questions/1794444/use-multiple-catalina-base-to-setup-tomcat-6-instances-on-windows

apache multiple tomcat isntance
http://linuxphile.org/node/7


http://www.javacodegeeks.com/2011/08/multiple-tomcat-instances-on-single.html

-- how 2 shut down a tomcat instance forcelly.
-- use the CATALINA_PID variable
[user@server bin]$ cat start_tomcat.sh
#!/usr/bin/env /bin/bash

export JAVA_HOME="/opt/sponge/java"
export CATALINA_BASE="/opt/sponge/tomcat"
export CATALINA_PID=$CATALINA_BASE/catalina.pid
export JAVA_OPTS="$JAVA_OPTS -Xms516m -Xmx2g"
export CATALINA_OUT="/var/log/tomcat/catalina.out"

cd /opt/sponge/servers/apache-tomcat-6.0.35/
./bin/startup.sh
[user@server bin]$

[user@server bin]$ cat stop_tomcat.sh
#!/usr/bin/env /bin/bash

export JAVA_HOME="/opt/sponge/java"
export CATALINA_BASE="/opt/sponge/tomcat"
export CATALINA_PID=$CATALINA_BASE/catalina.pid
export CATALINA_HOME="/opt/sponge/servers/apache-tomcat-6.0.35"

cd /opt/sponge/servers/apache-tomcat-6.0.35
./bin/shutdown.sh -force


[user@server bin]$

你可能感兴趣的:(instance)