提交 6c5614a2 编写于 作者: W wangfeihu

Nacos做注册中心、配置中心持久化及搭建集群

上级 72e02f7f
......@@ -16,4 +16,4 @@ spring:
namespace: 9a11f5ff-f45e-4ef4-891a-3b9812ea7e40
# ${spring.application.name}-${spring.profile.active}.${spring.cloud.nacos.config.file-extension}
# nacos-config-client-dev.yaml
\ No newline at end of file
# nacos-config-client-dev.yamlf
\ No newline at end of file
......@@ -7,7 +7,8 @@ spring:
cloud:
nacos:
discovery:
server-addr: 127.0.0.1:8848 # 配置Nacos地址
#server-addr: 127.0.0.1:8848 # 配置Nacos地址
server-addr: 192.168.1.102:1111 # 换成 nginx 的 1111 端口,做集群
# 暴露服务, 用于监控
management:
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册