1)在系统环境变量中增加JAVA_HOME2=C:\Program Files\Java\jdk1.7.0_17
(同时,由于解决了其手动不能启动的问题,故也顺便将其解决方法中设置的路径改为:
编辑startup.bat文件,添加set JAVA_HOME2=C:\Program Files\Java\jdk1.7.0_17即可。(startdown.bat修改亦是如此))
2)打开将tomcat\conf目录下的server.xml 修改三端口号,保证端口不重复
<Server port="8005" shutdown="SHUTDOWN">
改为<Server port="9005" shutdown="SHUTDOWN">
<Connector port="8080" protocol="HTTP/1.1"
connectionTimeout="20000"
redirectPort="8443" />
改为
<Connector port="9090" protocol="HTTP/1.1"
connectionTimeout="20000"
redirectPort="8443" />
<Connector port="8009" protocol="AJP/1.3" redirectPort="8443" />
改为<Connector port="9009" protocol="AJP/1.3" redirectPort="8443" />
3)将tomcat\bin目录下的catalina.bat和service.bat中的JAVA_HOME替换为JAVA_HOME2,service.bat中的tomcat6替换为tomcat61。
(3)重新运行两个Tomcat,运行如下:
tomcat6.0的运行情况: