- Published on
Apache Tomcat Multi instances
- Authors
- Name
- Arnaud Ferrand
- @arferrand
Apache Tomcat Multi instances
to setup a multi instance with Tomcat, you can check the RUNNING.txt. But here is the simplified steps.
Download and Install a Java SE Runtime Environment.
Download and Install Apache Tomcat, Unpack the binary distribution so that it resides in its own directory (conventionally named "apache-tomcat-[version]").
For the purposes of the remainder of this document, the name CATALINA_HOME
is used to refer to the full pathname of that directory.
Configure Environment Variables
Set CATALINA_HOME
, CATALINA_BASE
, and JAVA_HOME
or JRE_HOME
On windows
Set CATALINA_HOME=C:\bin\apache-tomcat-8.0.21
set CATALINA_BASE=C:\code\project\tomcat
set JAVA_HOME=C:\Program Files\Java\jdk1.7.0_51
copy conf
directory from CATALINA_HOME
to CATALINA_BASE
create logs
and temp
directories
create a webapps
directory and copy you war files.
Startup tomcat with
On Windows
%CATALINA_HOME%\bin\startup.bat
and shutdown Tomcat with
On Windows
%CATALINA_HOME%\bin\shutdown.bat
For full details look at "Advanced Configuration - Multiple Tomcat Instances" in RUNNING.txt file.