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. Download apache-tomcat7.0.53
Download address: https://tomcat.apache.org/
two。 Extract the files to the / usr/local/apache-tomcat directory. If there is no apache-tomcat directory, create a new directory first.
3. Since tomcat installation depends on JAVA JDK, check to see if the Linux system is configured with a java environment
(1) use the java-version command to view the current jdk version information
Java-version
(2) use the command rpm-qa | grep java to query the java installed by the operating system itself.
Rpm-qa | grep java
It can be seen that JAVA JDK has not been installed in my Linux system, so I have to download and install it first.
4. Install JAVA JDK
Recommend an installation configuration blog: https://www.cnblogs.com/liugh/p/6623530.html
5. Start Tomcat
(1) enter the tomcat execution directory
Cd / usr/local/tomcat/tomcat7/bin
(2) add JAVA JDK environment variable and edit setclasspath.sh
Sume@ubuntu:/usr/local/apache-tomcat/apache-tomcat-7.0.53/bin$ sudo vim setclasspath.sh
In setclasspath.sh, be sure to add environment variables between the following two paragraphs, otherwise tomcat startup fails.
#-
# Set JAVA_HOME or JRE_HOME if not already set, ensure any provided settings
# are valid and consistent with the selected start-up options and set up the
# endorsed directory.
#-
# my append
Export JAVA_HOME=/usr/local/jdk8/jdk1.8.0_201export JRE_HOME=/usr/local/jdk8/jdk1.8.0_201/jre
# Make sure prerequisite environment variables are set
(3) check the running status of tomcat
Ps-ef | grep tomcat
(4) start tomcat
Sudo. / startup.sh
The port number of Tomcat is 8080. Under the condition that the network is smooth, enter the address in the WINDOWS browser and you can see the Tomcat web page is configured successfully.
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.