/ Published in: Bash
Tomcat expects certain environment variables to be defined before it starts. Make two scripts and save them as starttomcat & stoptomcat respectively (No File Extension). Then make them executable with this. chisaiv$ chmod ug+x starttomcat stoptomcat. Then finally run your scripts like so chrisaiv$ /usr/local/bin/start_tomcat
Expand |
Embed | Plain Text
/************************************ Startup Script ************************************/ #!/bin/sh export CATALINA_HOME=/usr/local/apache-tomcat-6.0.16/ export JAVA_HOME=/Library/Java/Home $CATALINA_HOME/bin/startup.sh /************************************ Startup Script ************************************/ #!/bin/sh export CATALINA_HOME=/usr/local/apache-tomcat-6.0.16/ export JAVA_HOME=/Library/Java/Home $CATALINA_HOME/bin/shutdown.sh
You need to login to post a comment.
