tomcat 6.0.20在一个机器上安装多个服务的方法

tomcat 6.0.20在一个机器上安装多个服务的方法,第1张

tomcat 6.0.20在一个机器上安装多个服务的方法 tomcat/bin/service.bat
这个文件就是将tomcat安装为系统服务的,参数为
Usage: service.bat install/remove [service_name]
install 为安装服务
remove 为移除服务
可选的service_name是服务的名字,默认为tomcat,这个参数是关键

下面是在另一个tomcatLZZ目录下面做的配置,打开service.bat
rem Guess CATALINA_HOME if not defined
set CURRENT_DIR=%cd%
set CATALINA_HOME=d:\tomcatLZZ
if not "%CATALINA_HOME%" == "" goto gotHome
rem set CATALINA_HOME=%cd%

第三行是关键,直接在这里指定好了,别让系统猜了。
运行安装

D:\tomcatLZZ\bin>service install tomcatLZZ
Installing the service 'tomcatLZZ' ...
Using CATALINA_HOME: d:\tomcatLZZ
Using CATALINA_BASE: d:\tomcatLZZ
Using JAVA_HOME: C:\Program Files\Java\jdk1.6.0_10
Using JVM: C:\Program Files\Java\jdk1.6.0_10\jre\bin\server\jvm.dll
The service 'tomcatLZZ' has been installed.

D:\tomcatLZZ\bin>

安装成功了,系统有了2个tomcat的服务。使用各自的服务和配置

欢迎分享,转载请注明来源:内存溢出

原文地址: http://www.outofmemory.cn/yw/894956.html

(0)
打赏 微信扫一扫 微信扫一扫 支付宝扫一扫 支付宝扫一扫
上一篇 2022-05-14
下一篇 2022-05-14

发表评论

登录后才能评论

评论列表(0条)

保存