liunx安装jdk

2019-09-06 00:00:00 安装 jdk Liunx

jdk 安装包  https://pan.baidu.com/s/1cKnUQGU2Sk2nsARAzzVAHw

 [root@localhost ~]# tar -zxvf jdk-8u152-linux-x64.tar.gz

[root@localhost ~]# mv jdk1.8.0_152/ /usr/local/java

[root@localhost ~]# vi /etc/profile

 

//末尾加入
export JAVA_HOME=/usr/local/java

export PATH=$PATH:$JAVA_HOME/bin


[root@localhost ~]# source /etc/profile

[root@localhost ~]# java –version

java version 1.8.0_152 Java(TM) SE Runtime Environment (build 1.8.0_152-b16) Java HotSpot(TM) 64-Bit Server VM (build 25.152-b16, mixed mode)

    原文作者:东东w
    原文地址: https://www.cnblogs.com/renxixao/p/11469754.html
    本文转自网络文章,转载此文章仅为分享知识,如有侵权,请联系博主进行删除。

相关文章