-
执行 nacos-mysql.sql
-
进入conf 下配置环境

-
application.properties (替换数据库用户和密码)

-
cluster.conf
172.20.10.3:8847
172.20.10.3:8848
172.20.10.3:8849
- nacos\bin 下创建 cluster.cmd
@echo off
set PORT=%1
set PATH=%~dp0
set cluster=..\cluster
set d=nacos-%PORT%
if not exist %cluster% (
mkdir %cluster%
)
cd %cluster%
if not exist %d% (
mkdir %d%
)
cd %d%
if not exist bin (
mkdir bin
)
if not exist conf (
mkdir conf
)
if not exist target (
mkdir target
)
copy ..\..\bin\startup.cmd bin\
copy ..\..\bin\shutdown.cmd bin\
copy ..\..\conf\*.* conf\
copy ..\..\target\*.jar target\
cd conf\
echo.>>application.pr

本文介绍如何通过执行 SQL 脚本并配置 Nacos 的 application.properties 和 cluster.conf 文件来部署 Nacos 集群。此外,还提供了创建集群启动脚本的方法,并概述了如何通过修改 Nginx 配置实现负载均衡。
最低0.47元/天 解锁文章
949

被折叠的 条评论
为什么被折叠?



