Browse Source

修改redis配置

tuonina 5 years ago
parent
commit
55621380e9

+ 3 - 3
eureka-web/src/main/resources/application-dev.yml

@@ -13,9 +13,9 @@ spring:
     host: 192.168.42.1
     port: 5672
   redis:
-    host: 192.168.42.1
-    port: 6379
-    database: 0
+    sentinel:
+      master: tuonq
+      nodes: 192.168.42.1:26379
 
 
 

+ 3 - 3
eureka-web/src/main/resources/application-prod.yml

@@ -18,6 +18,6 @@ spring:
     host: 192.168.42.1
     port: 5672
   redis:
-    host: 192.168.42.1
-    port: 6379
-    database: 0
+    sentinel:
+      master: tuonq
+      nodes: tuonq_sentinel:26379

+ 3 - 3
eureka-web/src/main/resources/application-sit.yml

@@ -13,9 +13,9 @@ spring:
     host: 192.168.42.1
     port: 5672
   redis:
-    host: 192.168.42.1
-    port: 6379
-    database: 0
+    sentinel:
+      master: tuonq
+      nodes: tuonq_sentinel:26379
 
 eureka:
   instance: