In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-03-29 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >
Share
Shulou(Shulou.com)06/01 Report--
This article will explain in detail what common configurations there are in Linux. The editor thinks it is very practical, so I share it with you for reference. I hope you can get something after reading this article.
one。 Install JDK under Linux
Method 1: use the yum command to install (generally there is no need to configure environment variables)
If the current Linux has JDK, check the current JDK version: java-version, or rpm-qa | grep jdk
Remove the current JDK:yum-y remove java-x.x.x
Check out all available JDK versions in the yum software library: yum search jdk
JDK version required for installation: yum install java-x.x.x,yum install java-x.x.x-devel
Method 2: use the installation package to install (generally need to configure environment variables)
Copy the installation package to the appropriate directory, for example, copy the installation package jdk-7u79-linux-x64.gz to the / usr/local/java directory
Extract the installation package: tar-zxvf jdk-7u79-linux-x64.gz, and generate the installation directory jdk1.7.0_79
Configure environment variables: add the following to / etc/profile
# set java environmentJAVA_HOME=/usr/local/java/jdk1.7.0_79CLASS_PATH=.:$JAVA_HOME/lib/dt.jar:$JAVA_HOME/lib/tools.jarPATH=$JAVA_HOEM/bin:$PATHexport JAVA_HOME CLASS_PATH PATH
Execute the command source / etc/profile to make the configuration effective
two。 Linux install Tomcat
Before installing Tomcat, make sure that JDK is installed.
Copy the Tomcat installation package to the appropriate directory, for example, copy the installation package apache-tomcat-8.0.50.tar.gz to the / usr/local/tomcat directory
Go to the directory where the installation package is stored and extract the installation package: tar-zxvf apache-tomcat-8.0.50.tar.gz
Go to the bin directory under Tomcat and execute. / startup.sh or sudo. / startup.sh to start Tomcat
three。 Linux modifies Tomcat default JDK
Stop the Tomcat service
Go to the bin directory under Tomcat, and modify the catalina.sh and setclasspath.sh files in that directory, and add the following code to the headers of the two files:
Export JAVA_HOME=/usr/local/java/jdk1.7.0_79export JRE_HOME=/usr/local/java/jdk1.7.0_79/jre about "what are the common configurations of Linux" this article is shared here, I hope the above content can be of some help to you, so that you can learn more knowledge, if you think the article is good, please share it out for more people to see.
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.