In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-04-07 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Database >
Share
Shulou(Shulou.com)06/01 Report--
Download jdk from oracle needless to say
Tar zxvf * .tar.gz (* .tar.gz is the name of the downloaded file, decompress.)
Mv * jdk (* is the folder you unzipped, change your name, I change it to jdk, change whatever I like, I'll change this easy to remember)
Mv jdk / usr/local/ (then put the renamed folder in / usr/local/)
Vi / etc/profile (edit the configuration, environment variables)
Add at the end:
JAVA_HOME=/usr/local/jdk
Export JRE_HOME=/usr/local/jdk/jre
Export CLASSPATH=.:$JAVA_HOME/lib:$JRE_HOME/lib:$CLASSPATH
Export PATH=$JAVA_HOME/bin:$JRE_HOME/bin:$PATH
Then modify the default JDK:
Update-alternatives-install / usr/bin/java java/ usr/java/bin/java 300
Update-alternatives-install / usr/bin/javac javac / usr/java/bin/javac 300
Update-alternatives-config java
Update-alternatives-config javac
Source / etc/profile
Java-version
Javac-version
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.