Linux自启动

linux 下tomcat开机自启动
修改Tomcat/bin/startup.sh 为:
export JAVA_HOME=/usr/java/j2sdk1.4.2_08
export CLASSPATH=$CLASSPATH:$JAVA_HOME/lib/tools.jar:$JAVA_HOME/lib/dt.jar:.
export PATH=$PATH:$JAVA_HOME/bin
export CATALINA_HOME=/usr/local/tomcat
/usr/local/tomcat/bin/catalina.sh start

在/etc/rc.d/rc.local中加入:
/usr/local/tomcat/bin/startup.sh

posted on 2014-06-04 15:33  davidkam  阅读(145)  评论(0编辑  收藏  举报