标签:idt get ref title html java_home edit inux etc
1 tar -zxvf jdk-8u171-linux-x64.tar.gz
1 ##将文件从下载目录 挪到/usr/local下
2 sudo mv jdk1.8.0_171 /usr/local/jdk1.8
1 vim /etc/profile
1 export JAVA_HOME=/usr/local/jdk1.8
2 export JRE_HOME=${JAVA_HOME}/jre
3 export CLASSPATH=.:${JAVA_HOME}/lib:${JRE_HOME}/lib
4 export PATH=.:${JAVA_HOME}/bin:$PATH
1 sudo vim /etc/profile
1 source /etc/profile
1 java -version
标签:idt get ref title html java_home edit inux etc
原文地址:https://www.cnblogs.com/fdyang/p/13217322.html