vi /etc/profile 進入配置文件java
#set java environment export JAVA_HOME=/opt/jdk/jdk1.8.0_221/ export JRE_HOME=${JAVA_HOME}/jre export CLASSPATH=.:${JAVA_HOME}/lib:${JRE_HOME}/lib export PATH=${JAVA_HOME}/bin:$PATH
source /etc/profile
建立臨時節點spa