操作步骤 https://jdk.java.net/java-se-ri/7下载openJDK 7安装包 解压,设置环境变量 1 2 3 4 5 6 7 8 9 tar -zxvf openjdk-7u75-b13-linux-x64-18_dec_2014.tar.gz sudo tee -a /etc/profile <<-'EOF' JAVA_HOME=/home/vagrant/software/openjdk/java-se-7u75-ri PATH=${JAVA_HOME}/bin:${PATH} EOF source /etc/profile Ubuntu 20.04网络调整 Ubuntu中的environment文件
操作步骤 https://jdk.java.net/java-se-ri/7下载openJDK 7安装包 解压,设置环境变量 1 2 3 4 5 6 7 8 9 tar -zxvf openjdk-7u75-b13-linux-x64-18_dec_2014.tar.gz sudo tee -a /etc/profile <<-'EOF' JAVA_HOME=/home/vagrant/software/openjdk/java-se-7u75-ri PATH=${JAVA_HOME}/bin:${PATH} EOF source /etc/profile