windows under tomcat stand-alone multi-instance deployment

1. Download tomcat unzip Installation

2. The tomcat installation path file bin, lib folder to the new folder (designated BASE)

3. New INS1, INS2 folder used to store the tomcat instance (the conf, logs, temp, webapps, work5 folders copied in),

 File structure is as follows:

4. Modify the port in INS-1 in the conf directory server.xml file, remember to set up multiple instances running when the port do not conflict

The startup script editor INS1-START.BAT (multiple instances, a modified example of the path to copy the script),

Close the script editor, the same content, just put "starup.bat" changed to "shutdown.bat" to

 set TITLE=INS-1

SET JAVA_HOME =D:\Program Files\Java\jdk1.8.0_131
set JRE_HOME=D:\Program Files\Java\jdk1.8.0_131\jre
SET CATALINA_BASE=D:\TomcatSer\multiton-tomcat\INS-1
SET CATALINA_HOME=D:\TomcatSer\multiton-tomcat\BASE
cd %CATALINA_HOME%\bin
call startup.bat

Note: If the environment variable is not set JAVA_HOME, you can then set here JAVA_HOME JRE_HOME 

         CATALINA_BASE: Examples of path points

        CATALINA_HOME: common parts tomcat run (only contains lib and bin folders), all of the instances cited this path

 

6. Run the .bat file, you can start tomcat

 

 

Guess you like

Origin www.cnblogs.com/zt2710/p/11204175.html