我下载apache-tomcat-6.0.35
并放在tomcat
文件夹中。
我确实对此: http ://builddeploy.blogspot.com/2010/02/running-multiple-tomcat-instances-on.html
我的tomcat目录结构是
tomcat
apache-tomcat-6.0.35
bin,conf,lib,logs,temp,webapps,work //Folders name
tomcatclpl
bin,conf,logs,temp,webapps,work //Folders name
tomcatmass
bin,conf,logs,temp,webapps,work //Folders name
和apache-tomcat-6.0.35's server.xml file port is 8085
<Server port="8005" shutdown="SHUTDOWN">
和
<Connector port="8005" protocol="HTTP/1.1"
connectionTimeout="20000"
redirectPort="8443" />
tomcatclpl's conf - server.xml file
我改变了以下
<Server port="8205" shutdown="SHUTDOWN">
和
<Connector port="8282" protocol="HTTP/1.1"
connectionTimeout="20000"
redirectPort="8443" />
和
<Connector port="8209" protocol="AJP/1.3" redirectPort="8443" />
像 tomcatmass 一样,我也将端口更改为8383
.
我的 starup.bat 文件是:
@echo off
@echo Tomcat CLPL Service
set "CATALINA_BASE = C:\Tomcat\tomcatclpl"
set "CATALINA_HOME=C:\Tomcat\apache-tomcat-6.0.35"
C:\Tomcat\tomcatclpl\bin\startup.bat
当我在 cmd 行中运行时;
C:\Tomcat\tomcatclpl>startup.bat
Tomcat MASS Service
Using CATALINA_BASE: "C:\Tomcat\tomcatclpl"
Using CATALINA_HOME: "C:\Tomcat\tomcatclpl"
Using CATALINA_TMPDIR: "C:\Tomcat\tomcatclpl\temp"
Using JRE_HOME: "C:\Program Files\Java\jdk1.6.0_01"
Using CLASSPATH: "C:\Tomcat\tomcatclpl\bin\bootstrap.jar"
C:\Tomcat\tomcatclpl>
此 `bootstrap.jar 文件未启动。请帮帮我。
由于CATALINA_BASE & CATALINA_HOME
采取相同路径的原因,我无法解决此问题