Register tomcat as a startup service under linux

First copy catalina.sh under tomcat to the /etc/init.d/tomcat path

vi /etc/init.d/tomcat

exist

# OS specific support.  $var _must_ be set to either true or false.

cygwin=false

darwin=false

os400 = false

hpux=false

Add the following line above

CATALINA_HOME=/opt/tomcat7/

Please refer to the attachment for specific configuration

 

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=326481414&siteId=291194637