Browse Source

chore: 修改ip地址

hanfangyu 1 year ago
parent
commit
55d6b97707
1 changed files with 4 additions and 4 deletions
  1. 4 4
      src/main/resources/application-linux.yml

+ 4 - 4
src/main/resources/application-linux.yml

@@ -3,12 +3,12 @@ spring:
     cloud:
         nacos:
             discovery:
-                server-addr: 172.18.0.5:8848
-                ip: 172.18.0.3   # 可指定 注册IP 默认注册服务启动的机器的内网IP
+                server-addr: 172.18.0.1:8848
+                ip: 172.18.0.1   # 可指定 注册IP 默认注册服务启动的机器的内网IP
     # redis 配置
     redis:
         # 地址
-        host: 172.18.0.3
+        host: 172.18.0.1
         # 端口,默认为6379
         port: 6379
         # 数据库索引
@@ -33,7 +33,7 @@ spring:
         druid:
             # 主库数据源
             master:
-                url: jdbc:mysql://172.18.0.2:3306/ezhizao_yzbh_v2?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=true&allowMultiQueries=true&rewriteBatchedStatements=true&serverTimezone=GMT%2B8
+                url: jdbc:mysql://172.18.0.1:3306/ezhizao_yzbh_v2?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=true&allowMultiQueries=true&rewriteBatchedStatements=true&serverTimezone=GMT%2B8
                 username: root
                 password: ezhizao.cn123456
             # 从库数据源