In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-04-10 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/02 Report--
This article mainly shows you how to configure environment variables under the linux environment, the content is simple and easy to understand, I hope you can learn, after learning, there will be a harvest, the following let the editor take a look at it.
Configure the software directory under the root sibling directory in the linux environment
Upload the downloaded jdk to the software folder
(the operating software I use is)
Go to the software directory.
Enter command: cd / software
Enter command: ll
You can see our jdk package.
Extract the file
Extract the command tar xzvf jdk-8u111-linux-x64.tar.gz
After decompression, you can delete the compressed packet that was previously transmitted.
Delete the file rm-fjdk-8u111-linux-x64.tar.gz
Configure the environment variables for jdk
Similar to configuring JDK in Windows, you need to configure three environment variables
Enter the letter an or I after vi / etc/profile to enter the editing state. Add the following variables to the file
Enter the command to add an environment variable:
Export JAVA_HOME=/software/jdk1.8.0_111
Export CLASSPATH=.:$JAVA_HOME/jre/lib/rt.jar:$JAVA_HOME/lib/dt.jar:$JAVA_HOME/lib/tools.jar
Export PATH=$JAVA_HOME/bin:$PATH
Enter the command to view the environment variables:
Echo $CLASSPATH
Echo $PATH
Enter the command to view the version of jdk
Java-version
Note: sometimes you need to restart to see these configuration information.
The above is about how to configure environment variables in linux environment. If you have learned knowledge or skills, you can share it 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.