首先 把tomcat下的catalina.sh复制到 /etc/init.d/tomcat 路径
vi /etc/init.d/tomcat
在
# OS specific support. $var _must_ be set to either true or false.
cygwin=false
darwin=false
os400=false
hpux=false
上面增加下面这行
CATALINA_HOME=/opt/tomcat7/
具体配置见附件
首先 把tomcat下的catalina.sh复制到 /etc/init.d/tomcat 路径
vi /etc/init.d/tomcat
在
# OS specific support. $var _must_ be set to either true or false.
cygwin=false
darwin=false
os400=false
hpux=false
上面增加下面这行
CATALINA_HOME=/opt/tomcat7/
具体配置见附件