铁雪资源网 Design By www.gsvan.com
参见:https://www.jb51.net/article/112612.htm
检查一下系统中的jdk版本
[hadoop@master ~]$ java -version openjdk version "1.8.0_222-ea" OpenJDK Runtime Environment (build 1.8.0_222-ea-b03) OpenJDK 64-Bit Server VM (build 25.222-b03, mixed mode)
检测jdk安装包
[hadoop@master ~]$ rpm -qa | grep java python-javapackages-3.4.1-11.el7.noarch javapackages-tools-3.4.1-11.el7.noarch tzdata-java-2019b-1.el7.noarch java-1.8.0-openjdk-headless-1.8.0.222.b03-1.el7.x86_64 java-1.8.0-openjdk-1.8.0.222.b03-1.el7.x86_64 [hadoop@master ~]$
卸载openjdk
[hadoop@master ~]$ sudo yum -y remove *openjdk* [sudo] password for hadoop: Loaded plugins: langpacks, ulninfo Resolving Dependencies --> Running transaction check ---> Package java-1.8.0-openjdk.x86_64 1:1.8.0.222.b03-1.el7 will be erased --> Processing Dependency: java >= 1.5 for package: jline-1.0-8.el7.noarch --> Processing Dependency: java-1.8.0-openjdk for package: icedtea-web-1.7.1-1.el7.x86_64 ---> Package java-1.8.0-openjdk-headless.x86_64 1:1.8.0.222.b03-1.el7 will be erased --> Running transaction check ---> Package icedtea-web.x86_64 0:1.7.1-1.el7 will be erased ---> Package jline.noarch 0:1.0-8.el7 will be erased --> Processing Dependency: jline for package: rhino-1.7R5-1.el7.noarch --> Running transaction check ---> Package rhino.noarch 0:1.7R5-1.el7 will be erased --> Finished Dependency Resolution ol7_UEKR5/x86_64 | 2.5 kB 00:00:00 ol7_latest/x86_64 | 2.7 kB 00:00:00 Dependencies Resolved ========================================================================================================================================================================================================== Package Arch Version Repository Size ========================================================================================================================================================================================================== Removing: java-1.8.0-openjdk x86_64 1:1.8.0.222.b03-1.el7 @anaconda/7.7 642 k java-1.8.0-openjdk-headless x86_64 1:1.8.0.222.b03-1.el7 @anaconda/7.7 106 M Removing for dependencies: icedtea-web x86_64 1.7.1-1.el7 @anaconda/7.7 2.3 M jline noarch 1.0-8.el7 @anaconda/7.7 72 k rhino noarch 1.7R5-1.el7 @anaconda/7.7 1.1 M Transaction Summary ========================================================================================================================================================================================================== Remove 2 Packages (+3 Dependent packages) Installed size: 110 M Downloading packages: Running transaction check Running transaction test Transaction test succeeded Running transaction Erasing : icedtea-web-1.7.1-1.el7.x86_64 1/5 Erasing : rhino-1.7R5-1.el7.noarch 2/5 Erasing : jline-1.0-8.el7.noarch 3/5 Erasing : 1:java-1.8.0-openjdk-1.8.0.222.b03-1.el7.x86_64 4/5 Erasing : 1:java-1.8.0-openjdk-headless-1.8.0.222.b03-1.el7.x86_64 5/5 Verifying : 1:java-1.8.0-openjdk-headless-1.8.0.222.b03-1.el7.x86_64 1/5 Verifying : 1:java-1.8.0-openjdk-1.8.0.222.b03-1.el7.x86_64 2/5 Verifying : icedtea-web-1.7.1-1.el7.x86_64 3/5 Verifying : rhino-1.7R5-1.el7.noarch 4/5 Verifying : jline-1.0-8.el7.noarch 5/5 Removed: java-1.8.0-openjdk.x86_64 1:1.8.0.222.b03-1.el7 java-1.8.0-openjdk-headless.x86_64 1:1.8.0.222.b03-1.el7 Dependency Removed: icedtea-web.x86_64 0:1.7.1-1.el7 jline.noarch 0:1.0-8.el7 rhino.noarch 0:1.7R5-1.el7 Complete!
上传安装介质并解压
[hadoop@master ~]$ sudo tar -xzf jdk-8u191-linux-x64.tar.gz -C /usr/lib/jvm
设置环境变量,在/etc/profile最前面加上
export JAVA_HOME=/usr/lib/jvm/jdk1.8.0_191 export JRE_HOME=${JAVA_HOME}/jre export CLASSPATH=.:${JAVA_HOME}/lib:${JRE_HOME}/lib export PATH=${JAVA_HOME}/bin:$PATH
最后生效一下source /etc/profile
铁雪资源网 Design By www.gsvan.com
广告合作:本站广告合作请联系QQ:858582 申请时备注:广告合作(否则不回)
免责声明:本站文章均来自网站采集或用户投稿,网站不提供任何软件下载或自行开发的软件! 如有用户或公司发现本站内容信息存在侵权行为,请邮件告知! 858582#qq.com
免责声明:本站文章均来自网站采集或用户投稿,网站不提供任何软件下载或自行开发的软件! 如有用户或公司发现本站内容信息存在侵权行为,请邮件告知! 858582#qq.com
铁雪资源网 Design By www.gsvan.com
暂无如何卸载linux自带openjdk并安装sun jdk的评论...
《魔兽世界》大逃杀!60人新游玩模式《强袭风暴》3月21日上线
暴雪近日发布了《魔兽世界》10.2.6 更新内容,新游玩模式《强袭风暴》即将于3月21 日在亚服上线,届时玩家将前往阿拉希高地展开一场 60 人大逃杀对战。
艾泽拉斯的冒险者已经征服了艾泽拉斯的大地及遥远的彼岸。他们在对抗世界上最致命的敌人时展现出过人的手腕,并且成功阻止终结宇宙等级的威胁。当他们在为即将于《魔兽世界》资料片《地心之战》中来袭的萨拉塔斯势力做战斗准备时,他们还需要在熟悉的阿拉希高地面对一个全新的敌人──那就是彼此。在《巨龙崛起》10.2.6 更新的《强袭风暴》中,玩家将会进入一个全新的海盗主题大逃杀式限时活动,其中包含极高的风险和史诗级的奖励。
《强袭风暴》不是普通的战场,作为一个独立于主游戏之外的活动,玩家可以用大逃杀的风格来体验《魔兽世界》,不分职业、不分装备(除了你在赛局中捡到的),光是技巧和战略的强弱之分就能决定出谁才是能坚持到最后的赢家。本次活动将会开放单人和双人模式,玩家在加入海盗主题的预赛大厅区域前,可以从强袭风暴角色画面新增好友。游玩游戏将可以累计名望轨迹,《巨龙崛起》和《魔兽世界:巫妖王之怒 经典版》的玩家都可以获得奖励。