echo "start install jdk"mkdir /usr/local/javacd /usr/local/javaecho "mkdir success"wget http://192.168.1.81:1212/jdk-8u321-linux-x64.tar.gzecho "wget success"tar -zxvf /usr/local/java/jdk-8u321-linux-x64.tar.gzecho "tar success"cat >> /etc/profile << EOFJAVA_HOME=/usr/local/java/jdk1.8.0_321JRE_HOME=$JAVA_HOME/jrePATH=$PATH:$JAVA_HOME/bin:$JRE_HOME/binCLASSPATH=.:$JAVA_HOME/lib/dt.jar:$JAVA_HOME/lib/tools.jar:$JRE_HOME/libexport JAVA_HOME JRE_HOME PATH CLASSPATHEOFecho "cat success"source /etc/profileecho "JDK is installed"