Nacos学习笔记-安装部署和SpringCloud整合示例

本文介绍了Nacos的单机和集群模式安装步骤,包括Windows和Linux系统的启动命令。详细阐述了如何配置集群模式,如初始化MySQL数据库、修改配置文件及启动服务。此外,文章还提供了一个Nacos整合Spring Cloud的示例,涵盖了服务注册发现、配置管理以及与Zuul和Gateway网关的集成。涉及的Spring Boot、Spring Cloud和Nacos版本信息也一并给出。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

官网地址:https://nacos.io/en-us/index.html

下载地址: https://github.com/alibaba/nacos/releases

文档地址: https://nacos.io/en-us/docs/what-is-nacos.html

nacos版本:1.4.1

一、单机模式

Windows:cmd startup.cmd -m standalone

Linux/Unix:bash startup.sh -m standalone

访问地址:http://localhost:8848/nacos

登录账户/密码:nacos/nacos

二、集群模式

准备MySQL数据库,新建nacos数据库和nacos用户

create database nacos;

create user 'nacos'@'%' identified by 'nacos';

grant all privileges on `nacos%`.* to 
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值