Linux系统

redistributed under the terms of the GNU Public License

时间:2017-4-29 13:29:06  作者:solgle  来源:solgle.com  查看:1004  评论:0
内容摘要:Redhat linux 安装jre报以下错误:[root@dataNode1 ~]# sudo update-alternatives -install /u01/jdk1.8.0_131/bin/java 300This may be freely redistributed...
Redhat linux 安装jre报以下错误:
[root@dataNode1 ~]# sudo update-alternatives -install /u01/jdk1.8.0_131/bin/java 300
 
This may be freely redistributed under the terms of the GNU Public License.
...

下面采用以下方法安装

[hodp@dataNode1 ~]$ tar -vxf server-jre-8u131-linux-x64.tar.gz

[hodp@dataNode1 ~]$ mv jdk1.8.0_131/ /u01/

[root@dataNode1 jdk1.8.0_131]# vi /etc/profile

##append code

export JAVA_HOME=/u01/jdk1.8.0_131

 

export CLASSPATH=$JAVA_HOME/lib:$JAVA_HOME/lib/dt.jar:$JAVA_HOME/lib/tools.jar

 

export PATH=$JAVA_HOME/bin:$PATH

 

[hodp@dataNode2 jdk1.8.0_131]$ source /etc/profile

[hodp@dataNode2 jdk1.8.0_131]$ java -version

java version "1.8.0_131"

Java(TM) SE Runtime Environment (build 1.8.0_131-b11)

Java HotSpot(TM) 64-Bit Server VM (build 25.131-b11, mixed mode)



标签:Redhat Linux安装JDK 1.8 

solgle.com 版权所有,欢迎分享!!!

相关评论
   Copyright © 2013-2020 solgle.com,All rights reserved.[solgle.com] 公安机关备案号:51010802000219
Email:solgle@solgle.com; weixin:cd1008610000 ICP:蜀ICP备14011070号-1