From 0bf33b9ee1049df2742dddb85b9685a5a15a24a0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=AB=98=E5=AE=87=E8=8F=B2?= <10215501422@stu.ecnu.edu.cn> Date: Wed, 15 Nov 2023 20:38:09 +0800 Subject: [PATCH] =?UTF-8?q?Fix:=20/etc/profile=20=E6=96=87=E4=BB=B6?= =?UTF-8?q?=E5=90=8D=E5=86=99=E9=94=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 原本的export JAVA_HOME=/usr/java/jdk1.8.0_391 这行写成了jdk-1.8.0_391,导致java command not found --- CICD-ucloudUhub.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CICD-ucloudUhub.md b/CICD-ucloudUhub.md index 8780876..476ff91 100644 --- a/CICD-ucloudUhub.md +++ b/CICD-ucloudUhub.md @@ -156,7 +156,7 @@ vi /etc/profile 在文件末尾添加 ``` -export JAVA_HOME=/usr/java/jdk-1.8.0_391 +export JAVA_HOME=/usr/java/jdk1.8.0_391 export PATH=$JAVA_HOME/bin:$PATH export CLASSPATH=.:$JAVA_HOME/lib/dt.jar:$JAVA_HOME/lib ```