Tomcat as service
Simple steps to setup Tomcat as service on Redhat:
- put this script on
/etc/init.d/ - edit it, so that the variables
JAVA_HOMEandTOMCAT_HOMEare pointing to correct locations on your system, for instance the script is setted with:
TOMCAT_HOME=/opt/tomcat
JAVA_HOME=/usr/java/jdk1.5.0_09 - set execution permision to the script:
# chmod a+x /etc/init.d/tomcat - add a
tomcatuser, if there is no one already# adduser tomcat - make
tomcatuser the owner ofTOMCAT_HOMEdirectory, for instance# chown -R tomcat:tomcat /opt/tomcat/ - finally, install the script as service
# chkconfig --add tomcat
# service tomcat [start|status|stop]
Source: http://www.spaceprogram.com/knowledge/2004/01/starting-tomcat-as-service-on-linux.html
Labels: java

0 Comments:
Post a Comment
<< Home