感谢支持
我们一直在努力

Tomcat 6在Ubuntu8.04上设置自启动脚本分享

其它的都跟coldfusion那篇差不多,就直接献上Tomcat 6在Ubuntu8.04上设置自启动脚本 吧:


/etc/init.d/tomcat


#!/bin/sh
# Tomcat auto-start
#
# description: Auto-starts tomcat
# processname: tomcat
# pidfile: /var/run/tomcat.pid


export Java_HOME=/usr/lib/jvm/java-6-sun


case $1 in
start)
sh /opt/apache-tomcat-6.0.16/bin/startup.sh
;;
stop)
sh /opt/apache-tomcat-6.0.16/bin/shutdown.sh
;;
restart)
sh /opt/apache-tomcat-6.0.16/bin/shutdown.sh
sh /opt/apache-tomcat-6.0.16/bin/startup.sh
;;
*)
echo ‘Usage:tomcat start|stop|restart’
;;
esac


exit 0

赞(0) 打赏
转载请注明出处:服务器评测 » Tomcat 6在Ubuntu8.04上设置自启动脚本分享
分享到: 更多 (0)

听说打赏我的人,都进福布斯排行榜啦!

支付宝扫一扫打赏

微信扫一扫打赏