From 8626f087bb4354008cc4226f460cdd64bf95e06b Mon Sep 17 00:00:00 2001 From: lbw Date: Fri, 16 Apr 2021 10:28:18 +0800 Subject: [PATCH] =?UTF-8?q?:sparkles:=20=E5=A2=9E=E5=8A=A0=E8=BF=90?= =?UTF-8?q?=E8=A1=8C=E7=8E=AF=E5=A2=83=E5=88=A4=E6=96=AD=EF=BC=8C=E9=81=BF?= =?UTF-8?q?=E5=85=8Dnacos-server=20=E5=9C=A8windows=20=E4=B8=AD=E6=96=87?= =?UTF-8?q?=E8=B7=AF=E5=BE=84=E8=BF=90=E8=A1=8C=E7=8E=AF=E5=A2=83=E5=88=9D?= =?UTF-8?q?=E5=A7=8B=E5=8C=96=E5=A4=B1=E8=B4=A5=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../main/java/com/alibaba/nacos/PigNacosApplication.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pig-register/src/main/java/com/alibaba/nacos/PigNacosApplication.java b/pig-register/src/main/java/com/alibaba/nacos/PigNacosApplication.java index 351eafc8..14f0c28b 100755 --- a/pig-register/src/main/java/com/alibaba/nacos/PigNacosApplication.java +++ b/pig-register/src/main/java/com/alibaba/nacos/PigNacosApplication.java @@ -45,10 +45,10 @@ public class PigNacosApplication { */ private static boolean initEnv() { // 特殊处理 window 且用户名包含中文的用户,避免RocksDB 初始化失败 + // System.setProperty(SystemUtil.USER_HOME, "/nacos-path/"); if (SystemUtil.getOsInfo().isWindows() - && Validator.hasChinese(SystemUtil.getUserInfo().getName())) { - log.error("路径包含中文,需要在以下配置指定不包含中文目录"); - System.setProperty(SystemUtil.USER_HOME, "/nacos-path/"); + && Validator.hasChinese(SystemUtil.getUserInfo().getHomeDir())) { + log.error("路径包含中文,需要打开以上注释配置指定不包含中文目录"); return false; }