From 4044fd075e299fddbf3ef1869196e633b3427880 Mon Sep 17 00:00:00 2001 From: wforget <643348094@qq.com> Date: Sun, 17 Dec 2023 15:35:42 +0800 Subject: [PATCH] [LINKIS-5043] Only start the eureka service if DISCOVERY is EUREKA --- linkis-dist/package/sbin/linkis-start-all.sh | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/linkis-dist/package/sbin/linkis-start-all.sh b/linkis-dist/package/sbin/linkis-start-all.sh index 55c1ba684e..d70b37d19d 100644 --- a/linkis-dist/package/sbin/linkis-start-all.sh +++ b/linkis-dist/package/sbin/linkis-start-all.sh @@ -64,10 +64,12 @@ echo "<-------------------------------->" echo "Linkis manager data is being cleared" sh $LINKIS_HOME/sbin/clear-server.sh -#linkis-mg-eureka -export SERVER_NAME="mg-eureka" -SERVER_IP=$EUREKA_INSTALL_IP -startApp +if [ "$DISCOVERY" == "EUREKA" ]; then + #linkis-mg-eureka + export SERVER_NAME="mg-eureka" + SERVER_IP=$EUREKA_INSTALL_IP + startApp +fi #linkis-mg-gateway SERVER_NAME="mg-gateway"