CSDN首页 空间 新闻 论坛 Blog 下载 读书 网摘 搜索 .NET Java 视频 接项目 求职 在线学习 买书 程序员 通知
山寨机中的战斗机! 程序优化工程师到底对IT界有没有贡献
CSDN社区
搜索 收藏 打印 关闭
CSDN社区 >  Java >  J2SE / 基础类

怎样让tomcat在后台运行?weblogic呢?

楼主AYellow((北斗猪)(AreYouOK?))2001-11-16 20:31:36 在 Java / J2SE / 基础类 提问

那个控制台窗口很讨厌 问题点数:100、回复次数:10Top

1 楼mellono(mellono)回复于 2001-11-17 00:07:46 得分 100

tomcat的帮助文档中有把tomcat做成nt服务的说明,照它说的做吧很简单的。Top

2 楼AYellow((北斗猪)(AreYouOK?))回复于 2001-11-17 09:03:32 得分 0

是哪个文件?Top

3 楼mellono(mellono)回复于 2001-11-17 12:23:30 得分 0

$<tomcat_home>$\doc\NT-Service-howto.htmlTop

4 楼AYellow((北斗猪)(AreYouOK?))回复于 2001-11-17 17:45:33 得分 0

没有这个文件!  
  我用的是tomcat3.1Top

5 楼mellono(mellono)回复于 2001-11-18 10:39:10 得分 0

我把这篇文章贴给你,你可以看一下你的tomcat的帮助文档目录,应该有这篇文章的,帮助文档中还有把tomcat和iis结合的文章,都可以看一下。  
   
  Working   with   the   Jakarta   NT   Service  
  By   Gal   Shachor   <shachor@il.ibm.com>    
   
  The   Jakarta   NT   service   is   an   executable   that   wraps   the   Tomcat   servlet   container   and   executes   it   in   the   background   as   an   NT   service.   To   install   it   you   will   need   to:  
   
  Get   a   hold   on   the   NT   executable   (jk_nt_service.exe)    
  Download   the   executable   from   the   win32/i386   directory   found   where   you   downloaded   the   Tomcat   binary   distribution(http://jakarta.apache.org/downloads/binindex.html).   For   those   using   Netscape   as   your   browser,   try   downloading   a   zip   version   of   the   file,   if   available.   There   can   be   problems   using   Netscape   to   download   DLL   files.    
  Customize   a   properties   file   that   provides   the   service   with   Tomcat   information   (wrapper.properties).    
  Locate   the   wrapper.properties   template   file   in   your   Tomcat   conf   directory.    
  Update   the   wrapper.tomcat_home   property   to   point   at   your   tomcat   home.    
  Update   the   wrapper.java_home   property   to   point   at   your   Java   home.    
  Install   jk_nt_service   by   running   it   with   the   -i   flag.    
  Execute   jk_nt_service   -I   <name   of   service>   <path   to   updated   wrapper   properties>    
  <name   of   service>   should   be   a   single   word   (without   and   spaces)   such   as   Jakarta    
  <path   to   updated   wrapper   properties>   should   point   to   your   wrapper.properties   file   (and   the   service   will   check   it's   existence.)    
  For   example,   a   valid   command   line   can   be   jk_nt_service   -I   Jakarta   wrapper.properties    
  Start   tomcat   as   a   service.    
  From   the   command   line,   execute   net   start   <name   of   service>   (e.g.   net   start   Jakarta)    
  From   the   NT   services   applet,   highlight   your   service   and   press   start.    
  Note:   If   the   log   file   location   in   your   wrapper.properties   file   points   to   the   logs   directory,   and   the   logs   directory   doesn't   yet   exist,   manually   create   it   before   starting   the   service.    
  Stop   Tomcat   as   a   service.    
  From   the   command   line,   execute   net   stop   <name   of   service>   (e.g.   net   stop   Jakarta)    
  From   the   NT   services   applet,   highlight   your   service   and   press   stop.    
  Special   note:   The   Tomcat   service   is   using   AJPV12   to   perform   clean   shutdown   and   you   should   make   sure   that   an   AJPV12   connector   is   defined   in   your   server.xml.   In   the   absence   of   a   configured   AJPV12   port   the   Tomcat   service   will   kill   Tomcat   abruptly   (that   is   murder   it)   without   giving   it   a   chance   to   clean   up.    
   
  To   remove   the   installed   service,   execute   jk_nt_service   -R   <name   of   service>  
   
  Advance   Setup  
  Modify   the   Tomcat   NT   service   properties.   By   default   the   service   will   run   in   manual   mode   and   under   the   local   system   user   account.   To   modify   this,   open   the   NT   services   applet,   highlight   your   service   and   press   startup.   A   popup   window   is   opened   and   you   will   be   able   to   customize   the   service   to   your   satisfaction.    
  Modify   the   classpath.   The   classpath   is   determined   by   the   wrapper.class_path   properties,   to   modify   it   just   add/remove/modify   wrapper.class_path   lines.   The   complete   classpath   is   calculated   by   concatenating   all   the   wrapper.class_path   lines   and   putting   ";"   between   them.    
  Execute   several   Tomcat   instances.   Say   that   you   want   one   Tomcat   to   run   for   "production"   and   one   for   development,   you   can   do   that.   All   you   will   need   to   do   is   to   install   the   Tomcat   service   twice   and   under   two   different   names   (and   with   different   wrapper.properties   file   and   server.xml   files).    
  Make   sure   that   the   AJPV12   and   HTTP   connectors   are   modified   in   each   server.xml   file   to   prevent   a   clash.    
  Make   sure   to   update   the   wrapper.shutdown_port   property   in   wrapper.properties   to   point   to   the   correct   AJPV12   shutdown   ports   (default   is   8007).    
  Modify   the   command   line   used   to   start   Tomcat.   The   Tomcat   service   is   taking   all   it's   command   line   configuration   from   wrapper.properties!   To   customize   the   command   line,   edit   the   property   wrapper.cmd_line   and   make   sure   that   it   makes   a   legal   Java   command   line.    
  Feedback  
  Please   send   feedback,   bug   report   or   any   additional   information   to   <tomcat-user@jakarta.apache.org>    
  Top

6 楼AYellow((北斗猪)(AreYouOK?))回复于 2001-11-18 12:13:50 得分 0

你用的是哪个版本?Top

7 楼mellono(mellono)回复于 2001-11-19 12:40:05 得分 0

3.2Top

8 楼zych72(心平气和)回复于 2001-12-29 10:30:22 得分 0

很好,我也要用Top

9 楼skt985(傻问天)回复于 2002-01-11 15:15:47 得分 0

39477关注!   :)Top

10 楼skt985(傻问天)回复于 2002-01-11 16:45:54 得分 0

33296关注!   :)Top

相关问题

  • 请问tomcat后台运行的问题
  • weblogic是否可以后台运行?是否可以自己配置监控?
  • 自动后台运行
  • 可以后台运行吗?
  • 为什么我在tomcat下正常运行的程序搬到weblogic下就不能运行了呢?
  • 大家来救急:hibernate程序在TOMCAT中能运行,在WEBLOGIC中却不行?
  • 如何让程序在后台运行?
  • 如何让excel在后台运行?
  • 如何使程序后台运行?
  • 提交后台运行、消息队列

关键词

  • tomcat
  • nt
  • jakarta
  • 文档
  • service
  • classpath
  • start
  • wrapper
  • ajpv12
  • jk

得分解答快速导航

  • 帖主:AYellow
  • mellono

相关链接

  • CSDN Java频道
  • Java类图书
  • Java类源码下载

广告也精彩

反馈

请通过下述方式给我们反馈
反馈
提问
网站简介|广告服务|VIP资费标准|银行汇款帐号|网站地图|帮助|联系方式|诚聘英才|English|问题报告
北京创新乐知广告有限公司 版权所有, 京 ICP 证 070598 号
世纪乐知(北京)网络技术有限公司 提供技术支持
Copyright © 2000-2008, CSDN.NET, All Rights Reserved
GongshangLogo