LingxinMeng 7 months ago
parent
commit
c523c92384

+ 2 - 0
simulation-gateway/remove.sh

@@ -0,0 +1,2 @@
+#!/bin/bash
+rm -rf ./LOG_HOME_IS_UNDEFINED/ ./nohup.out

+ 2 - 2
simulation-gateway/src/main/resources/bootstrap-center.yaml

@@ -5,9 +5,9 @@ spring:
       discovery:
         server-addr: 192.168.11.221:8848
         namespace: 3698bfc2-a612-487a-b2a2-aaad16cd9d9d
-        group: private
+        group: center
       config:
         server-addr: 192.168.11.221:8848
         namespace: 3698bfc2-a612-487a-b2a2-aaad16cd9d9d
         file-extension: yaml
-        group: private
+        group: center

+ 2 - 1
simulation-gateway/start-center.sh

@@ -1 +1,2 @@
-nohup java -jar -Xms2048m -Xmx2048m simulation-oauth-server-1.0.jar --spring.profiles.active=center &
+#!/bin/bash
+nohup java -jar -Xms256m -Xmx256m simulation-gateway-1.0.jar --spring.profiles.active=center &

+ 4 - 4
simulation-gateway/stop.sh

@@ -1,12 +1,12 @@
 #!/bin/bash
 
 # 获取运行 simulation-oauth-server-1.0.jar 的 Java 进程的 PID
-PID=$(ps -ef | grep simulation-oauth-server-1.0.jar | grep java | awk '{ print $2 }')
+PID=$(pgrep -f simulation-gateway-1.0.jar)
 
 # 检查是否找到了 PID
 if [ -z "$PID" ]; then
-    echo "Application is already stopped or not found"
+    echo "------- 服务已停止,无需重复执行脚本 -------"
 else
-    echo "Killing process with PID: $PID"
-    kill $PID
+    echo "------- 杀死指定进程: $PID -------"
+    kill "$PID"
 fi

+ 13 - 0
simulation-oauth-client/src/main/resources/bootstrap-center.yaml

@@ -0,0 +1,13 @@
+# 国汽私有云
+spring:
+  cloud:
+    nacos:
+      discovery:
+        server-addr: 192.168.11.221:8848
+        namespace: 3698bfc2-a612-487a-b2a2-aaad16cd9d9d
+        group: center
+      config:
+        server-addr: 192.168.11.221:8848
+        namespace: 3698bfc2-a612-487a-b2a2-aaad16cd9d9d
+        file-extension: yaml
+        group: center

+ 2 - 0
simulation-oauth-server/remove.sh

@@ -0,0 +1,2 @@
+#!/bin/bash
+rm -rf ./LOG_HOME_IS_UNDEFINED/ ./nohup.out

+ 13 - 0
simulation-oauth-server/src/main/resources/bootstrap-center.yaml

@@ -0,0 +1,13 @@
+# 国汽私有云
+spring:
+  cloud:
+    nacos:
+      discovery:
+        server-addr: 192.168.11.221:8848
+        namespace: 3698bfc2-a612-487a-b2a2-aaad16cd9d9d
+        group: center
+      config:
+        server-addr: 192.168.11.221:8848
+        namespace: 3698bfc2-a612-487a-b2a2-aaad16cd9d9d
+        file-extension: yaml
+        group: center

+ 2 - 0
simulation-oauth-server/start-center.sh

@@ -0,0 +1,2 @@
+#!/bin/bash
+nohup java -jar -Xms256m -Xmx256m simulation-oauth-server-1.0.jar --spring.profiles.active=center &

+ 13 - 0
simulation-oauth-server/stop.sh

@@ -0,0 +1,13 @@
+#!/bin/bash
+
+# 获取运行 simulation-oauth-server-1.0.jar 的 Java 进程的 PID
+#PID=$(ps -ef | grep simulation-oauth-server-1.0.jar | grep java | awk '{ print $2 }')
+PID=$(pgrep -f simulation-oauth-server-1.0.jar)
+
+# 检查是否找到了 PID
+if [ -z "$PID" ]; then
+    echo "------- 服务已停止,无需重复执行脚本 -------"
+else
+    echo "------- 杀死指定进程: $PID -------"
+    kill "$PID"
+fi

+ 13 - 0
simulation-resource-common/src/main/resources/bootstrap-center.yaml

@@ -0,0 +1,13 @@
+# 国汽私有云
+spring:
+  cloud:
+    nacos:
+      discovery:
+        server-addr: 192.168.11.221:8848
+        namespace: 3698bfc2-a612-487a-b2a2-aaad16cd9d9d
+        group: center
+      config:
+        server-addr: 192.168.11.221:8848
+        namespace: 3698bfc2-a612-487a-b2a2-aaad16cd9d9d
+        file-extension: yaml
+        group: center

+ 13 - 0
simulation-resource-monitor/src/main/resources/bootstrap-center.yaml

@@ -0,0 +1,13 @@
+# 国汽私有云
+spring:
+  cloud:
+    nacos:
+      discovery:
+        server-addr: 192.168.11.221:8848
+        namespace: 3698bfc2-a612-487a-b2a2-aaad16cd9d9d
+        group: center
+      config:
+        server-addr: 192.168.11.221:8848
+        namespace: 3698bfc2-a612-487a-b2a2-aaad16cd9d9d
+        file-extension: yaml
+        group: center

+ 13 - 0
simulation-resource-scene/src/main/resources/bootstrap-center.yaml

@@ -0,0 +1,13 @@
+# 国汽私有云
+spring:
+  cloud:
+    nacos:
+      discovery:
+        server-addr: 192.168.11.221:8848
+        namespace: 3698bfc2-a612-487a-b2a2-aaad16cd9d9d
+        group: center
+      config:
+        server-addr: 192.168.11.221:8848
+        namespace: 3698bfc2-a612-487a-b2a2-aaad16cd9d9d
+        file-extension: yaml
+        group: center

+ 13 - 0
simulation-resource-scheduler/src/main/resources/bootstrap-center.yaml

@@ -0,0 +1,13 @@
+# 国汽私有云
+spring:
+  cloud:
+    nacos:
+      discovery:
+        server-addr: 192.168.11.221:8848
+        namespace: 3698bfc2-a612-487a-b2a2-aaad16cd9d9d
+        group: center
+      config:
+        server-addr: 192.168.11.221:8848
+        namespace: 3698bfc2-a612-487a-b2a2-aaad16cd9d9d
+        file-extension: yaml
+        group: center

+ 13 - 0
simulation-resource-server/src/main/resources/bootstrap-center.yaml

@@ -0,0 +1,13 @@
+# 国汽私有云
+spring:
+  cloud:
+    nacos:
+      discovery:
+        server-addr: 192.168.11.221:8848
+        namespace: 3698bfc2-a612-487a-b2a2-aaad16cd9d9d
+        group: center
+      config:
+        server-addr: 192.168.11.221:8848
+        namespace: 3698bfc2-a612-487a-b2a2-aaad16cd9d9d
+        file-extension: yaml
+        group: center

+ 13 - 0
simulation-resource-sms/src/main/resources/bootstrap-center.yaml

@@ -0,0 +1,13 @@
+# 国汽私有云
+spring:
+  cloud:
+    nacos:
+      discovery:
+        server-addr: 192.168.11.221:8848
+        namespace: 3698bfc2-a612-487a-b2a2-aaad16cd9d9d
+        group: center
+      config:
+        server-addr: 192.168.11.221:8848
+        namespace: 3698bfc2-a612-487a-b2a2-aaad16cd9d9d
+        file-extension: yaml
+        group: center

+ 13 - 0
simulation-resource-video/src/main/resources/bootstrap-center.yaml

@@ -0,0 +1,13 @@
+# 国汽私有云
+spring:
+  cloud:
+    nacos:
+      discovery:
+        server-addr: 192.168.11.221:8848
+        namespace: 3698bfc2-a612-487a-b2a2-aaad16cd9d9d
+        group: center
+      config:
+        server-addr: 192.168.11.221:8848
+        namespace: 3698bfc2-a612-487a-b2a2-aaad16cd9d9d
+        file-extension: yaml
+        group: center