目录
步骤一:完成JAVA环境部署
[root@localhost opt]#ls
jdk-8u361-linux-x64.tar.gz rh
[root@localhost opt]#tar xf jdk-8u361-linux-x64.tar.gz
[root@localhost opt]#ls
jdk1.8.0_361 jdk-8u361-linux-x64.tar.gz rh
[root@localhost opt]#vim /etc/profile.d/java.sh
export JAVA_HOME=/opt/jdk1.8.0_361
export JRE_HOME=$JAVA_HOME/jre
export CLASSPATH=.:$JAVA_HOME/lib:$JRE_HOME/lib
export PATH=$JAVA_HOME/bin:$JRE_HOME/bin:$PATH
[root@localhost opt]#source /etc/profile.d/java.sh
[root@localhost opt]#java -version