jdk 下载:如果官网没有账号: https://www.iworkh.com/download/share/99-%E8%BD%AF%E4%BB%B6/04-%E7%8E%AF%E5%A2%83%E6%90%AD%E5%BB%BA/jdk/
#####set java environment
#export JAVA_HOME=/usr/java/jdk1.8.0_172
#export JRE_HOME=${JAVA_HOME}/jre
#export CLASSPATH=.:${JAVA_HOME}/lib:${JRE_HOME}/lib
#export PATH=${JAVA_HOME}/bin:$PATH
export JAVA_HOME=/usr/lib/jvm/jdk1.8.0_172
export JRE_HOME=/usr/lib/jvm/jdk1.8.0_172/jre
export PATH=$PATH:$JAVA_HOME/bin:$JRE_HOME/bin
export CLASSPATH=.:$JAVA_HOME/lib:$JAVA_HOME/jre/lib:$CLASSPATH
#########tomcat#############
#export CATALINA_HOME=/usr/local/tomcat/apache-tomcat-7.0.86
#set maven environment
export M2_HOME=/usr/local/maven/apache-maven-3.0.5
export PATH=$PATH:$M2_HOME/bin
export PATH=~/.local/bin:$PATH