windows redis cluster 配置

1、修改redis.windows.conf

cluster-enabled yes

cluster-config-file nodes-6379.conf

cluster-node-timeout 15000

-------------------------------------------------------------------------------

2、安装ruby环境

https://rubyinstaller.org/downloads/ 下载安装即可

安装完配置环境变量

3、安装ruby gem环境

地址:https://rubygems.org/pages/download

安装完之后 切换到ruby根目录 执行 ruby setup.rb

4、切换到redis目录 执行 gem install redis(注:redis-trib.rb必须和redis版本对应)

redis-trib.rb 可以在下面下载 (在src目录下)

地址:https://github.com/MicrosoftArchive/redis/releases

5、启动对应的redis单机   redis-server redis.window.conf

6、创建集群

ruby redis-trib.rb create --replicas 1  127.0.0.1:6380 127.0.0.1:6381 127.0.0.1:6382 127.0.0.1:6383 127.0.0.1:6384 127.0.0.1:6385

posted @ 2019-03-27 15:15  hello|world  阅读(406)  评论(0编辑  收藏  举报