2018-03-14 10:14:58   Visit  2174

配置catalina.sh

# chkconfig: 112 63 37
# description: tomcat server init script
# Source Function Library
. /etc/init.d/functions

JAVA_HOME=/usr/local/jdk1.6.0_23/
CATALINA_HOME=/usr/local/tomcat

复制catalina.sh到init.d目录

cp -p /usr/local/tomcat/bin/catalina.sh /etc/init.d/tomcat8

注册到服务

chmod 755 /etc/init.d/tomcat8
chkconfig --add tomcat8
chkconfig tomcat8 on

启动服务

service tomcat8 start
Starting tomcat8 (via systemctl):                          [  OK  ]
©2017 Leechg.com