关闭

使Tomcat4.x作为Windows NT/2000的一个服务

992人阅读 评论(1) 收藏 举报

使Tomcat4.x作为Windows NT/2000的一个服务:

Installing Tomcat as a service

I needed to reinstall Tomcat as a service this morning. I found this reference which I’d used before in the past but has now disappeared. Luckily Google cached it.This originally appeared on mattkelli.com.
Setting up TomCat 4.1.12 to run as an NT Service:
* Set NT environment variables:

  # CATALINA_HOME=C:/jakarta-tomcat-4.1.12
  # CATALINA_OPTS=-server -Xms128m -Xmx512m

* Open up a new command prompt (ensures environment variables you just added are active)
* Run the following (must be all one line so you may have to put in notepad and then copy — copy from this page should work OK):


%CATALINA_HOME%/bin/tomcat.exe -install Tomcat8 %JAVA_HOME%/jre/bin/server/jvm.dll -Djava.class.path=%CATALINA_HOME%/bin/bootstrap.jar;%JAVA_HOME%/lib/tools.jar -Dcatalina.home=%CATALINA_HOME% %CATALINA_OPTS% -Xrs -start org.apache.catalina.startup.BootstrapService -params start -stop org.apache.catalina.startup.BootstrapService -params stop -out %CATALINA_HOME%/logs/stdout.log -err %CATALINA_HOME%/logs/stderr.log

To Uninstall Tomcat Service use:

    %CATALINA_HOME%/bin/tomcat.exe -uninstall Tomcat

* You should get a message saying that the task was installed successfully.
* The service is called Tomcat
0
0

查看评论
* 以上用户言论只代表其个人观点,不代表CSDN网站的观点或立场
    个人资料
    • 访问:266386次
    • 积分:3447
    • 等级:
    • 排名:第9657名
    • 原创:75篇
    • 转载:53篇
    • 译文:0篇
    • 评论:36条
    最新评论