yum install vip-jdk8.x86_64
vi /etc/profile 添加
JAVA_HOME=/apps/svr/jdk
PATH=$JAVA_HOME/bin:$PATH
CLASSPATH=.:$JAVA_HOME/lib/dt.jar:$JAVA_HOME/lib/tools.jar:$CLASSPATH
export JAVA_HOME="$JAVA_HOME"
export PATH="$PATH"
export CLASSPATH="$CLASSPATH"
source /etc/profile
网友评论