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/02 Report--
Step 1: Check the openJDK that comes with Linux and uninstall: 1. Check out the openJDK that comes with Linux: [root@localhost ~]# java -versionjava version "1.7.0_131"OpenJDK Runtime Environment (rhel-2.6.9.0.el6_8-x86_64 u131-b00)OpenJDK 64-Bit Server VM (build 24.131-b00, mixed mode)2. Check the rpm package for the installed openJDK: [root@localhost ~]# rpm -qa| grep javajava-1.7.0-openjdk-1.7.0.131-2.6.9.0.el6_8.x86_64tzdata-java-2016j-1.el6.noarchjava-1.6.0-openjdk-1.6.0.41-1.13.13.1.el6_8.x86_643. Uninstall the openJDK that comes with it: [root@localhost ~]# rpm -e --nodeps java-1.7.0-openjdk-1.7.0.131-2.6.9.0.el6_8.x86_64[root@localhost ~]# rpm -e --nodeps java-1.6.0-openjdk-1.6.0.41-1.13.13.1.el6_8.x86_64[root@localhost ~]# rpm -e --nodeps tzdata-java-2016j-1.el6.noarch
Then look under/usr/lib/jvm, which is now empty and has been uninstalled clean.
Step 2: Install JDK 4 from Oracle. Upload Oracle jdk installation package jdk-8u191-linux-x64.tar.gz using ftp and extract it to the specified directory:
[root@ localhost ~]# tar xvf jdk-8u191-linux-x64.tar.gz -C /usr/local/
5. Create soft connection: [root@localhost ~]# cd /usr/local/[root@ localhost local]# ln -s jdk1.8.0_191 java6. Configure environment variables:
[root@ localhost local]# vim /etc/profile
Add the following at the end of the document:
export JAVA_HOME=/usr/local/javaexport CLASSPATH=.:$ JAVA_HOME/lib/tools.jar:$JAVA_HOME/lib/dt.jar export PATH=$JAVA_HOME/bin:$PATH
Save exit to make configuration effective:
[root@ bogon jdk1.8.0_191]# source /etc/profile
7. Verify installation succeeded [root@localhost local]# java -versionjava version "1.8.0_191"Java(TM) SE Runtime Environment (build 1.8.0_191-b12)Java HotSpot(TM) 64-Bit Server VM (build 25.191-b12, mixed mode)
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.