two tomcat servers

Recently, there is a need for balls, and two tomcats need to be installed, one for the test library and one for development. Summarize here, keep a record.
Originally, there was an installed version of tomcat in the computer. I saw some examples on the Internet, and I needed to re-install the free version of tomcat.
 
1. Download the installation-free version of tomcat and copy it to d:tomcat2;
2. Modify the server.xml file under conf in tomcat2 as follows:
<Server port="8005" shutdown="SHUTDOWN">Change 8005 in port to 8006 (or other unused ports) ;
<Connector port="8080" maxHttpHeaderSize="8192"
               maxThreads="150" minSpareThreads="25" maxSpareThreads="75"
               enableLookups="false" redirectPort="8443" acceptCount="100"
               connectionTimeout="20000" disableUploadTimeout="true" /> Change 8080 in port to 8081 (or other unused ports) ;
<Connector port="8009" 
               enableLookups="false" redirectPort="8443" protocol="AJP/1.3" /> Change 8009 in port to 8010 (or other unused ports) ;
3. Run cmd to the tomcat2\bin directory : d:tomcat2\bin service.bat install tomcat2,   this service.bat is only available in the installation-free version of tomcat
4. Find the tomcat2 service in the service and run it. The original tomcat can also be used in eclipse

Guess you like

Origin http://10.200.1.11:23101/article/api/json?id=326877282&siteId=291194637