1、下载免安装版tomcat,解压成tomcat1、tomcat2;
<wbr style="line-height:25px"><div style="line-height:25px">2、修改tomcat2中conf下server.xml文件如下:</div> <div style="line-height:25px"><Server port="8005" shutdown="SHUTDOWN">将port中8005修改成8006(或者其他未使用端口);</div> <div style="line-height:25px"> <div style="line-height:25px"><Connector port="8080" maxHttpHeaderSize="8192"</div> <div style="line-height:25px"> maxThreads="150" minSpareThreads="25" maxSpareThreads="75"</div> <div style="line-height:25px"> enableLookups="false" redirectPort="8443" acceptCount="100"</div> <div style="line-height:25px"> connectionTimeout="20000" disableUploadTimeout="true" />将port中8080修改成8081(或者其他未使用端口);</div> </div> <div style="line-height:25px"> <div style="line-height:25px"><Connector port="8009"</div> <div style="line-height:25px"> enableLookups="false" redirectPort="8443" protocol="AJP/1.3" />将port中8009修改成8010(或者其他未使用端口);</div> </div> </wbr>
<wbr style="line-height:25px"><div style="line-height:25px">2、修改tomcat2中conf下server.xml文件如下:</div> <div style="line-height:25px"><Server port="8005" shutdown="SHUTDOWN">将port中8005修改成8006(或者其他未使用端口);</div> <div style="line-height:25px"> <div style="line-height:25px"><Connector port="8080" maxHttpHeaderSize="8192"</div> <div style="line-height:25px"> maxThreads="150" minSpareThreads="25" maxSpareThreads="75"</div> <div style="line-height:25px"> enableLookups="false" redirectPort="8443" acceptCount="100"</div> <div style="line-height:25px"> connectionTimeout="20000" disableUploadTimeout="true" />将port中8080修改成8081(或者其他未使用端口);</div> </div> <div style="line-height:25px"> <div style="line-height:25px"><Connector port="8009"</div> <div style="line-height:25px"> enableLookups="false" redirectPort="8443" protocol="AJP/1.3" />将port中8009修改成8010(或者其他未使用端口);</div> </div> </wbr>