先在根目录下创建目录 : /soft/jdk8 ——用于放上传进来的软件包;
然后通过左边的上传按钮,把包上传到 /soft/jdk8下面;
然后在根目录下面创建/evir/jdk8 目录,用户放解压后的软件包;
tar -zxvf file.tar.gz -C /path/to/destination
tar -zxvf jdk-8u144-linux-x64.tar.gz -C /evir/jdk8/
添加环境变量:
export JAVA_HOME=/evir/jdk8/jdk1.8.0_144
export classpath=.$JAVA_HOME/lib
export PATH=$PATH:$JAVA_HOME/bin
参考博客:https://blog.csdn.net/qq_27121281/article/details/127646491
export JAVA_HOME=/developer/env/jdk/jdk1.8.0_351
export classpath=.$JAVA_HOME/lib
export PATH=$PATH:$JAVA_HOME/bin
标签:JAVA,复习,tar,PATH,jdk8,linux,HOME From: https://www.cnblogs.com/xiaobaibailongma/p/17825623.html