java install
mkdir /usr/local/java/jdk1.8.0_371
cd /usr/local/java/jdk1.8.0_371
tar -zxvf jdk-8u211-linux-x64.tar.gz
vim /etc/profile
在profile的最下面添加,下面的JAVA_HOME是JDK安装包解压后的文件夹目录
JAVA_HOME=/usr/java/jdk1.8.0_60
PATH=$JAVA_HOME/bin:$PATH
CLASSPATH=$JAVA_HOME/jre/lib/ext:$JAVA_HOME/lib/tools.jar
export PATH JAVA_HOME CLASSPATH