快捷搜索: 王者荣耀 脱发

Nacos windows 本地模拟服务端集群构建

1.参考网站 spring cloud alibaba 官方文档: https://spring-cloud-alibaba-group.github.io/github-pages/hoxton/en-us/index.html nacos 官方文档: https://nacos.io/zh-cn/docs/what-is-nacos.html

2.Nacos Server端集群配置 — windows 本地搭建, 客户端会把服务注册到服务端,客户端可以从server端获得配置信息 2.1 下载 nacos 服务端 https://github.com/alibaba/nacos/releases 下载windows 版本, 如: nacos-server-2.0.3.zip 2.2 下载后解压缩 nacos-server-2.0.3.zip

2.3 根据 conf 文件夹下 nacos-mysql.sql 创建 集群共用的数据库, 单机模式下nacos 有内嵌的默认数据库, 不需要创建,但在集群模式下,为了信息的共享和管理,需要创建共用的Mysql数据库。 2.3.1 create database nacos default character set utf8mb4 collate utf8mb4_unicode_ci; (数据库名叫nacos) 2.3.2 执行 nacos-mysql.sql

2.9 验证服务集群 http://localhost:8000/nacos/index.html 8000-在nginx配置的端口号

经验分享 程序员 微信小程序 职场和发展