更新 ubuntu-jdk8.sh

This commit is contained in:
8ga 2025-01-10 14:51:37 +08:00
parent 1e92d673e6
commit eda9ee3c43

View File

@ -2,7 +2,4 @@
cd /usr/local cd /usr/local
wget https://mirrors.huaweicloud.com/java/jdk/8u202-b08/jdk-8u202-linux-x64.tar.gz wget https://mirrors.huaweicloud.com/java/jdk/8u202-b08/jdk-8u202-linux-x64.tar.gz
tar -zvxf jdk-8u202-linux-x64.tar.gz tar -zvxf jdk-8u202-linux-x64.tar.gz
echo "export JAVA_HOME=/usr/local/jdk1.8.0_202" | tee -a /etc/profile bash ubuntu-java-home.sh
echo "export PATH=$PATH:/usr/local/jdk1.8.0_202/bin" | tee -a /etc/profile
source /etc/profile
java -version