官方文档:https://nacos.io/zh-cn/docs/cluster-mode-quick-start.html
部署模式:集群 3台Linux(统信)
部署要求
请确保是在环境中安装使用:
- 64 bit OS Linux/Unix/Mac,推荐使用Linux系统。
- 64 bit JDK 1.8+;下载.配置。
- Maven 3.2.x+;下载.配置。
- 3个或3个以上Nacos节点才能构成集群。
jdk安装
Java SE Development Kit 17.0.4.1
Linux x64 RPM Package
sudo rpm -ivh jdk-17.0.4.1_linux-x64_bin.rpm
nacos安装
git clone https://github.com/alibaba/nacos.git
db.url.0=jdbc:mysql://ip:3306/nacos_config?characterEncoding=utf8&connectTimeout=1000&socketTimeout=3000&autoReconnect=true&useUnicode=true&useSSL=false&serverTimezone=UTC
db.user.0=test
db.password.0=mima
unzip nacos-server-1.0.0.zip
cd nacos/bin
grant select,insert,delete,create,alter,update on nacos_config.* to 'test';
grant all privileges
source /opt/usr/nacos/conf/schema.sql
集群搭建参考下面引用:
https://blog.csdn.net/qq_44027353/article/details/125828993
https://blog.csdn.net/qq_51277752/article/details/125744997
https://blog.csdn.net/weixin_48016395/article/details/123911131
标签:db,nacos,blog,csdn,https,Linux,安装 From: https://www.cnblogs.com/liwutao/p/17145455.html