yown的专栏

专注无线Wap和Web网站专业建设及应用软件开发,为您提供专业的网站建设和软件开发设计解决方案! ...

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

使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
阅读更多
想对作者说点什么? 我来说一句

windows_nt_4_source_code WindowsNT4源码

2011年11月06日 229.96MB 下载

没有更多推荐了,返回首页

不良信息举报

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

最多只允许输入30个字

加入CSDN,享受更精准的内容推荐,与500万程序员共同成长!
关闭
关闭