In addition to Weibo, there is also WeChat
Please pay attention

WeChat public account
Shulou
2025-11-05 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/03 Report--
Install tomcat
Load the OpenJDK and related java files that come with the system
② type in the command window:
Rpm-qa | grep java
The following can be deleted
Java-1.7.0-openjdk-1.7.0.111-2.6.7.8.el7.x86_64
Java-1.8.0-openjdk-1.8.0.102-4.b14.el7.x86_64
Java-1.8.0-openjdk-headless-1.8.0.102-4.b14.el7.x86_64
Java-1.7.0-openjdk-headless-1.7.0.111-2.6.7.8.el7.x86_64
Noarch files do not need to be deleted
Python-javapackages-3.4.1-11.el7.noarch
Tzdata-java-2016g-2.el7.noarch
Javapackages-tools-3.4.1-11.el7.noarch
③ type in the command window:
Rpm-e-- nodeps java-1.7.0-openjdk-1.7.0.111-2.6.7.8.el7.x86_64
However, there will be errors, because under the normal user sxd, you do not have permission to manipulate these files.
Resolve:
In the command window, type:
Su root
Download good jdk under widonws system
Wget http://download.oracle.com/otn-pub/java/jdk/8u171-b11-demos/512cd62ec5174c3487ac17c61aaa89e8/jdk-8u171-linux-x64-demos.tar.gz
Install the file transfer command rz
Yum install lrzsz-y
Extract the file
Tar-zxf jdk-8u171-linux-x64-demos.tar.gz
Rename the file and move to / usr/local/
Mv jdk1.8.0_171 jdk
Mv jdk / usr/local/
Configure java environment variables
Vim / etc/profile
Add the following code
The location where JAVA_HOME=/usr/local/jdk stores the jdk
Location where export JRE_HOME=/usr/local/jdk/jre jre is stored
Export CLASSPATH=$JAVA_HOME/lib:$JRE_HOME/lib:$CLASSPATH
Export PATH=$JAVA_HOME/bin:$JRE_HOME/bin:$PATH
Start downloading tomcat
Wget http://mirrors.shu.edu.cn/apache/tomcat/tomcat-8/v8.5.32/bin/apache-tomcat-8.5.32.tar.gz
Extract the file
Tar-xf apache-tomcat-8.5.32.tar.gz
Rename the extracted file and move the file to / usr/local
Mv apache-tomcat-8.5.32 tomcat8
Mv mv tomcat8 / usr/local/
Startup file
/ usr/local/tomcat8/bin
. / startup.sh start
. / shutdown.sh off
Cat
Log file view
/ usr/local/tomcat8/logs
Cat calina.out log file
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.

The market share of Chrome browser on the desktop has exceeded 70%, and users are complaining about
The world's first 2nm mobile chip: Samsung Exynos 2600 is ready for mass production.According to a r
A US federal judge has ruled that Google can keep its Chrome browser, but it will be prohibited from
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope





About us Contact us Product review car news thenatureplanet
More Form oMedia: AutoTimes. Bestcoffee. SL News. Jarebook. Coffee Hunters. Sundaily. Modezone. NNB. Coffee. Game News. FrontStreet. GGAMEN
© 2024 shulou.com SLNews company. All rights reserved.