Java开发网 Java开发网
注册 | 登录 | 帮助 | 搜索 | 排行榜 | 发帖统计  

您没有登录

» Java开发网 » Application Server » Tomcat  

按打印兼容模式打印这个话题 打印话题    把这个话题寄给朋友 寄给朋友    该主题的所有更新都将Email到你的邮箱 订阅主题
flat modethreaded modego to previous topicgo to next topicgo to back
作者 redhat 9.0中,如何让 tomcat 在系统启动时自动启动?
myblessu



发贴: 0
积分: 0
于 2004-05-26 16:18 user profilesend a private message to usersearch all posts byselect and copy to clipboard. 
ie only, sorry for netscape users:-)add this post to my favorite list
我的tomcat安装在 /usr/tomcat-5.0.24目录下.

我直接运行 /usr/tomcat-5.0.24/bin/startup.sh 能启动 tomcat.

我在 /etc/rc.d/rc.local 中加入 /usr/tomcat-5.0.24/bin/startup.sh 保存后重新启动linux,当发现 tomcat并没有启动, 我该如何作才能让 tomcat 在系统启动时自动启动?

谢谢了!

我的 /etc/rc.d/rc.local文件的内容如下:

#!/bin/sh
#
# This script will be executed *after* all the other init scripts.
# You can put your own initialization stuff in here if you don't
# want to do the full Sys V style init stuff.

touch /var/lock/subsys/local
/usr/tomcat-5.0.24/bin/startup.sh



作者 Re:redhat 9.0中,如何让 tomcat 在系统启动时自动启动? [Re:myblessu]
老妖





发贴: 40
积分: 0
于 2004-05-26 16:36 user profilesend a private message to usersearch all posts byselect and copy to clipboard. 
ie only, sorry for netscape users:-)add this post to my favorite list
确保你的环境变量JAVA_HOME正确


作者 Re:redhat 9.0中,如何让 tomcat 在系统启动时自动启动? [Re:myblessu]
wenic705





发贴: 16
积分: 0
于 2004-07-16 08:40 user profilesend a private message to usersearch all posts byselect and copy to clipboard. 
ie only, sorry for netscape users:-)add this post to my favorite list
要做为一种服务启动。网上有这样的脚本。搜一下吧。
我也只是刚学LINUX




flat modethreaded modego to previous topicgo to next topicgo to back
  已读帖子
  新的帖子
  被删除的帖子
Jump to the top of page

   Powered by Jute Powerful Forum® Version Jute 1.5.6 Ent
Copyright © 2002-2021 Cjsdn Team. All Righits Reserved. 闽ICP备05005120号-1
客服电话 18559299278    客服信箱 714923@qq.com    客服QQ 714923