tomcat启动脚本tomcat6.sh
#!/bin/sh
JAVA_HOME=/usr/java/jrockit-1.6.0_20

CATALINA_HOME=/usr/local/workspace/tomcat-6.0.32

export JAVA_HOME CATALINA_HOME

case "$1" in
start)
   echo "Starting tomcat6..."
   $CATALINA_HOME/bin/startup.sh
   ;;
stop)
   echo "Stopping tomcat6..."
   $CATALINA_HOME/bin/shutdown.sh
   ;;
*)
   echo "Usage tomcat.sh start/stop"
   exit 1;;
esac



一般放在/etc/init.d/目录下
lunzi   2011-03-26 15:16:49 评论:0   阅读:538   引用:0

发表评论>>

署名发表(评论可管理,不必输入下面的姓名)

姓名:

主题:

内容: 最少15个,最长1000个字符

验证码: (如不清楚,请刷新)

Copyright@2004-2010 powered by YuLog