Below we write the detailed configuration process below for reference: (This example takes the configuration of three Tomcats as an example) 1. Download apache-tomcat-7.0.63, and the downloaded file is apache-tomcat-7.0.63 . zip. 2. Unzip the compressed package to the D:/div/ directory. 3. Modify the name of the decompressed folder to: tomcat7-8080 4. Create two copies of the folder in the D:/div/ directory and rename them to: tomcat7-8081, tomcat7-8082 5. Add environment variables: Right click on My Computer -> Select Properties -> Select Advanced -> Select Environment Variables: Add System Variables: CATALINA_HOME_8080, its value is: D:\div\tomcat7 -8080 ; CATALINA_HOME_8081, its value is: D:\div\tomcat7 -8081 ; CATALINA_HOME_8082, its value is: D:\div\tomcat7 -8082 ; 6. Modify the startup port and shutdown port: Enter the D:\div\tomcat7 -8081 \conf\ directory, open the server.xml file, and modify the following two places: ( 1) <Server port="8006" shutdown="SHUTDOWN"> Modify this port = "8006", the original default is: 8005 , so that its shutdown port does not conflict with another shutdown port. ( 2) <Connector port="8081" maxHttpHeaderSize="8192" maxThreads = "150" minSpareThreads="25" maxSpareThreads="75" enableLookups ="false" redirectPort="8443" acceptCount="100" connectionTimeout ="20000" disableUploadTimeout="true" /> Modify port = "8081", the original default is "8080 ", so that its connection port does not conflict with the other one. ( 3) <Connector port="8009" protocol="AJP/1.3" redirectPort="8443" /> Modify this port = "8010", the original default is: 8009, where AJP 1.3 Connector is defined. 7. Modify the contents of startup.bat and catalina.bat files: ( 1) Open the D:\div\tomcat7-8081 \bin\startup.bat file and replace all CATALINA_HOME with CATALINA_HOME_8081. ( 2) Open the D:\div\tomcat7-8081 \bin\catalina.bat file and replace all CATALINA_HOME with CATALINA_HOME_8081. The configuration method of tomcat7-8082 is the same as that of configuring tomcat7-8081 . 8 . Start Tomcat, enter three different Tomcat installation directories on the command line, execute startup.bat, and start three Tomcats respectively. Then enter in the browser: http://localhost:8080 http://localhost:8081 http://localhost:8082 Reprinted from: http://www.cnblogs.com/sj521/p/5974562.html
Deploy multiple tomcat
Guess you like
Origin http://43.154.161.224:23101/article/api/json?id=326352010&siteId=291194637
Recommended
Ranking