redis window 集群

redis 版本5.0.10 集群不再依赖ruby

互相ping:

redis-cli.exe --cluster create 127.0.0.1:7000 127.0.0.1:7001 127.0.0.1:7002 127.0.0.1:8000 127.0.0.1:8001 127.0.0.1:8002 --cluster-replicas 1

3主+3从

一键启动:

@echo off
start /d "C:\soft\redis7000" startup.bat
start /d "C:\soft\redis7001" startup.bat
start /d "C:\soft\redis7002" startup.bat
start /d "C:\soft\redis8000" startup.bat
start /d "C:\soft\redis8001" startup.bat
start /d "C:\soft\redis8002" startup.bat
pause

配置文件修改:

cluster-enabled yes
cluster-node-timeout 15000
cluster-config-file nodes-7000.conf
appendonly yes

 

posted @ 2021-04-07 17:04  月食岂是天狗错  阅读(45)  评论(0)    收藏  举报