centos yum 安装 jdk

Posted on Posted in linux
Tips: 本文创建于2016年3月29日,已超过 2 年,内容或图片可能已经失效!
yum -y list java*   #列出java版本  
yum -y install java-1.8.0-openjdk*  
# java -version  
openjdk version "1.8.0_77"  
OpenJDK Runtime Environment (build 1.8.0_77-b03)  
OpenJDK 64-Bit Server VM (build 25.77-b03, mixed mode)  

默认情况下jdk安装得路径/usr/lib/jvm

由于我们得机器可能同时安装好几个版本得jdk,所以在/etc/alternatives目录下会有一个java链接到具体的java命令。而这个/etc/alternatives/java会被/usr/bin/java链接。从而java命令就被设置到了shell环境中。

» 转载请注明来源:若我若鱼 » centos yum 安装 jdk

One thought on “centos yum 安装 jdk

  1. Firefox 54.0 Firefox 54.0 Windows 8.1 x64 Edition Windows 8.1 x64 Edition
    Mozilla/5.0 (Windows NT 6.3; WOW64; rv:54.0) Gecko/20100101 Firefox/54.0

    I see you don’t monetize your site, don’t waste your traffic, you can earn additional cash every month because you’ve got hi quality content.
    If you want to know what is the best adsense
    alternative, search in google: adsense alternative Mertiso’s tips

Leave a Reply

Your email address will not be published. Required fields are marked *

18 − seven =