Thursday, December 6, 2012

Shell Scripts for Starting and Stopping Apache Tomcat Server

Apache Tomcat Starts:
#!/bin/bash

export CATALINA_HOME=/amirDev/apache-tomcat-7.0.33/
export JAVA_HOME=/amirDev/jdk1.7.0/

bash -i /amirDev/apache-tomcat-7.0.33/bin/startup.sh

Apache Tomcat Stops:

#!/bin/bash

export CATALINA_HOME=/path/to/tomcat/directory
export JAVA_HOME=/path/to/jdk/jre/directory

bash -i /path/to/tomcat/bin/shutdown.sh


No comments:

Post a Comment