In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-16 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/03 Report--
1. Set jDKJAVA_HOME D:\ Java\ jdk1.7.3CLASSPATH.;% JAVA_HOME%\ lib\ dt.jar;Path% JAVA_HOME%\ bin;%JAVA_HOME%\ jre\ bin;2. Download tomcat to edit server.xml under tomcat, modify port number 8080-> 8090 8443-> 8444 8009-> 8010 edit tomcat bin catalina.bat CATALINA_HOME-> CATALINA_HOME2 edit bin startup.bat CATALINA_HOME-> CATALINA_HOME2 CATALINA_HOME E:\ Tomcat6-8080 CATALINA_HOME2 E:\ Tomcat6-8090
Modify the jdk specified when tomcat starts under windows
The default jdk version is 1.7, with both tomcat7 and tomcat8 versions of tomcat installed. Now you want to use tomcat8 to use jdk1.8 to run and edit the% TOMCAT_HOME%/bin/setclasspath.bat file
When the first tomcat starts, no matter how the port in the server.xml of the subsequent tomcat is changed, the port conflict will still be reported. Later, when running under dos, it is found that all tomcat will look for the two environment variables CATALINA_HOME and CATALINA_BASE (the variable CATALINA_HOME points to the installation directory of tomcat, and CATALINA_BASE points to the working directory of tomcat. If there is only one working directory under a tomcat service, the path of the two variables is the same. If you want multiple workbench directories to use the same tomcat service, the variable points to their respective directories), so the steps are as follows:
1. You cannot use the installation version of the compressed version of tomcat.
two。 The configuration of the first tomcat remains the same.
3. Add the environment variable CATALINA_HOME2 to the address of the new tomcat, and the environment variable CATALINA_BASE2 to the address of the new tomcat.
4. Modify the startup.bat in the new tomcat and change the CATALINA_HOME to CATALINA_HOME2.
5. Modify the catalina.bat in the new tomcat and change the CATALINA_HOME to CATALINA_HOME2,CATALINA_BASE to CATALINA_BASE2.
6. Modify the conf/server.xml file:
6.1 change the port to no port that is in use (original 8005).
Change the port to no port that is in use (original 8080).
6.3 change the port to no port that is in use (original 8009).
Install multiple tomcat in the form of a normal installation, and no matter which tomcat you start, you will open the tomcat with the environment variable configured, so make some settings to achieve the purpose of running multiple Tomcat at the same time.
Edit the startup.bat file in the bin directory and add these two lines of code in this location
The JDK path of each Tomcat is the same, while the path of tomcat corresponds to the path of the corresponding Tomcat. Do not make this setting. The default is to open the Tomcat set by the environment variable.
In this way, only one Tomcat is configured for the environment variable, and it is possible not even to configure the environment variable.
Set an environment variable for each Tomcat
First
(1) add the environment variable CATALINA_HOME1, whose value is the address of the new tomcat
(2) add the environment variable CATALINA_BASE1, whose value is the address of the new tomcat.
(3) find the startup.bat file in the first tomcat and change the CATALINA_HOME in it to CATALINA_HOME1
(4) find the catalina.bat in the first tomcat, and change the CATALINA_HOME to CATALINA_HOME1,CATALINA_BASE to CATALINA_BASE1.
(5) Open PATH and add the variable value:% CATALINA_HOME1%\ lib;%CATALINA_HOME1%\ bin
The second one.
(1) add the environment variable CATALINA_HOME2, whose value is the address of the new tomcat
(2) add the environment variable CATALINA_BASE2, whose value is the address of the new tomcat.
(3) find the startup.bat file in the second tomcat and change the CATALINA_HOME in it to CATALINA_HOME2
(4) find the catalina.bat in the second tomcat, and change the CATALINA_HOME to CATALINA_HOME2,CATALINA_BASE to CATALINA_BASE2.
(5) Open PATH and add the variable value:% CATALINA_HOME2%\ lib;%CATALINA_HOME2%\ bin
and so on
After completing the above operation (you can choose one of them)
Finally, modify the tomcat port
Modify the conf/server.xml file and modify three of them
Note: (1) make sure that the port of each Tomcat server is different, and that the modified port does not conflict with the port used by other programs.
(2) if you are sure that multiple Tomcat will not be started at the same time
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.