In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-02-28 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Network Security >
Share
Shulou(Shulou.com)06/01 Report--
Tomcat multi-instance does not make much sense in practical use, but it can simulate the scenario of multiple TOMCAT servers, reduce the pressure on the experimental machine, and make more applications more reliable LINK:tomcat multi-application (virtual host) configuration.
Jdk version: jrockit-jdk1.6.0_37-R28.2.5-4.1.0
Tomcat version: apache-tomcat-7.0.39
Jrockit installation location / usr/local/jrockit/
Tomcat installation location / usr/local/apache-tomcat-7.0.39/
Packages apr-1.4.6.tar.gz, apr-util-1.5.1.tar.gz, jrockit-jdk1.6.0_37-R28.2.5-4.1.0-linux-ia32.bin (32-bit), apache-tomcat-7.0.39.tar.gz are required
Tar zxvf apr-1.4.6.tar.gz cd apr-1.4.6./configuremake & & make installtar zxvf apr-util-1.5.1.tar.gzcd apr-util-1.5.1./configure-- with-apr=/usr/local/aprmake & & make install./jrockit-jdk1.6.0_37-R28.2.5-4.1.0-linux-ia32.bin# installation step 2 Select the installation directory / usr/local/jrockit/ln-s -f / usr/local/jrockit/jre/bin/java / usr/bin/ln-s-f / usr/local/jrockit/bin/javac / usr/bin/
Environment configuration-vim / etc/profile
# set JAVA & TOMCAT ENVIRONMENTexport JAVA_HOME=/usr/local/jrockitexport CLASSPATH=.:$JAVA_HOME/lib:$JAVA_HOME/jre/libexport PATH=$PATH:$JAVA_HOME/bin:$JAVA_HOME/jre/binexport CATALINA_HOME=/usr/local/apache-tomcat-7.0.39export JAVA_HOME CLASSPATH PATH CATALINA_HOMEexport LD_LIBRARY_PATH=/usr/local/apr/libsource / etc/profile # Refresh the environment variable java-versionjava version "1.6.0o37" Java (TM) SE Runtime Environment (build 1.6 .0_37-b06) Oracle JRockit (R) (build R28.2.5-20-152429-1.6.0) 37-20120927-1915-linux-ia32 Compiled mode) / * JAVA is configured successfully * /
LINK: tomcat generates logs based on date
~ ~
Each instance provides packages in / bin and / lib of TOMCAT, using other files separately
The instances are stored in the installation file directory of tomcat, which is called webapps1,webapps2
Cd / usr/local/apache-tomcat-7.0.39/mkdir {webapps1,webapps2} cp-r {conf/,logs/,temp/,webapps/,work/} webapps1cp-r {conf/,logs/,temp/,webapps/,work/} webapps2
Modify / usr/local/apache-tomcat-7.0.39/conf/server.xml
...
Modify port, name, application location, etc., corresponding to webapps1/conf/server.xml and webapps2/conf/server.xml
Start the corresponding instances respectively
Export CATALINA_BASE=$CATALINA_HOME/bin/bash $CATALINA_HOME/bin/startup.sh-Dcatalina.baseexport CATALINA_BASE=$CATALINA_HOME/webapps1/bin/bash $CATALINA_HOME/bin/startup.sh-Dcatalina.baseexport CATALINA_BASE=$CATALINA_HOME/webapps2/bin/bash $CATALINA_HOME/bin/startup.sh-Dcatalina.base
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.