×

Loading...
Ad by
  • 最优利率和cashback可以申请特批,好信用好收入offer更好。请点链接扫码加微信咨询,Scotiabank -- Nick Zhang 6478812600。
Ad by
  • 最优利率和cashback可以申请特批,好信用好收入offer更好。请点链接扫码加微信咨询,Scotiabank -- Nick Zhang 6478812600。

Hope this will help

本文发表在 rolia.net 枫下论坛How to install tomcat as a windowxp service:
1.set up java_home and catalina_home:
for example:
JAVA_HOME=d:\j2sdk
CATALINA_HOME=d:\tomcat-4.1
On windowsXP, you can add them to the system variables of your computer.
Just click on start->control panel->system->advanced->environment variables->system variables->new
In next pop up winwindow, type JAVA_HOME or CATALINA_HOME, and the path of the folder you installed java SDK and tomcat.
In the example above, they are d:\j2sdk, and d:\tomcat-4.1 respectively.


2.Copy this line to a DOS window(must be one line), and press enter:
%CATALINA_HOME%\bin\tomcat -install "Jakarta Tomcat 4" %JAVA_HOME%\jre\bin\server\jvm.dll -Djava.class.path=%CATALINA_HOME%\bin\bootstrap.jar;%JAVA_HOME%\lib\tools.jar -Dcatalina.home=%CATALINA_HOME% -Xrs -start org.apache.catalina.startup.Bootstrap -params start -stop org.apache.catalina.startup.Bootstrap -params stop -out %CATALINA_HOME%\logs\stdout.log
-err %CATALINA_HOME%\logs\stderr.log

you must change %CATALINA_HOME% to the path of tomcat, for example,d:\tomcat-4.1
and replace %JAVA_HOMEd%, for example, by d:\j2sdk.更多精彩文章及讨论,请光临枫下论坛 rolia.net
Report

Replies, comments and Discussions:

  • 工作学习 / IT技术讨论 / 各位高手,怎样才能把TOMCAT设成WINDOWS的SERVICE?这样的话我就不用每次都开一个DOS窗口了.
    • Hope this will help
      本文发表在 rolia.net 枫下论坛How to install tomcat as a windowxp service:
      1.set up java_home and catalina_home:
      for example:
      JAVA_HOME=d:\j2sdk
      CATALINA_HOME=d:\tomcat-4.1
      On windowsXP, you can add them to the system variables of your computer.
      Just click on start->control panel->system->advanced->environment variables->system variables->new
      In next pop up winwindow, type JAVA_HOME or CATALINA_HOME, and the path of the folder you installed java SDK and tomcat.
      In the example above, they are d:\j2sdk, and d:\tomcat-4.1 respectively.


      2.Copy this line to a DOS window(must be one line), and press enter:
      %CATALINA_HOME%\bin\tomcat -install "Jakarta Tomcat 4" %JAVA_HOME%\jre\bin\server\jvm.dll -Djava.class.path=%CATALINA_HOME%\bin\bootstrap.jar;%JAVA_HOME%\lib\tools.jar -Dcatalina.home=%CATALINA_HOME% -Xrs -start org.apache.catalina.startup.Bootstrap -params start -stop org.apache.catalina.startup.Bootstrap -params stop -out %CATALINA_HOME%\logs\stdout.log
      -err %CATALINA_HOME%\logs\stderr.log

      you must change %CATALINA_HOME% to the path of tomcat, for example,d:\tomcat-4.1
      and replace %JAVA_HOMEd%, for example, by d:\j2sdk.更多精彩文章及讨论,请光临枫下论坛 rolia.net
      • 后面那行看起来很乱啊,能不能发EMAIL给我?谢谢!
      • 搞定了,太高兴了,太谢谢你了
    • standalone tomcat 4.1 装好以后就注册成 service 了....俺在XP上
      • 不可能吧?骗我呢?
        • 突然想起来了问一句,你的XP是 Pro 还是 home? 哪个version? 俺的那个是2002
      • 在安装Tomcat的时候有选项 ( XP/2000/NT Service ) 省缺是不选的