在此先奉上安装包(链接:https://pan.baidu.com/s/1QHYQPkYPuiRWhdj9APbjnw 提取码:jv8x )

1. 安装ruby

  下载 rubyinstaller-2.2.6-x64.exe

2.安装ruby环境

  下载rubygems-2.6.12.zip

  解压安装包后,点击setup.rb安装

  

3. 替换国内的源(防止被墙)

  gem sources --remove https://rubygems.org/ 删掉原来的源
  gem sources -a https://gems.ruby-china.com/ 添加新源
  gem sources -l 查看现有的源

  

4. 安装redis依赖

  gem install redis

  

5. 下载redis

  Redis-x64-3.2.100.zip

  解压后,修改配置文件redis..windows.conf

  port 7001

  appendonly yes

  appendfilename "appendonly.7001.aof"

  cluster-enabled yes

  cluster-config-file nodes.7001.conf

  cluster-node-timeout 15000

  cluster-slave-validity-factor 10

  cluster-migration-barrier 1

  cluster-require-full-coverage yes

6. 开启redis服务,测试是否配置无误

7.输入集群命令

  redis-trib.rb create --replicas 1 ip地址:端口 192.168.8.90:6381 192.168.8.90:6382 192.8.123.90:6383

   192.168.8.90:6384 192.168.8.90:6385

  

  * 注意红框标注的,应该输入yes

8. 测试是否成功

  

最新文章

  1. c#常用方法
  2. Python 局部变量与全局变量
  3. ubuntu下 too many file open 异常
  4. OC基础数据类型-NSData-NSMutableData-NSString
  5. static关键字总结
  6. DNS劫持和DNS污染解决办法
  7. CodeSmith Template Model Output
  8. cf498C Array and Operations
  9. robot framework-databaselibaray库使用(python)(转)
  10. find 路径必须在表达式之前
  11. python+selenium自动化软件测试(第11章):持续集成jenkins和GitHub的使用
  12. 《Linux命令行与shell脚本编程大全》- 读书笔记2 - 更多的bash shell命令
  13. CMDB服务器管理系统【s5day92】:定制表头
  14. 2 Class类
  15. redis.conf 常见配置介绍
  16. 解决beego中同时开启http和https时,https端口占用问题
  17. 解决IIS8中 URLRewriter 不能使用的方法
  18. Android native层动态库注射
  19. nginx:负载均衡的session共享
  20. Linux下利用Ret2Libc绕过DEP

热门文章

  1. Linux 性能监控工具
  2. Module not found: Error: Can't resolve 'less-loader' in ' xxx' (Day_40)
  3. Pycharm搜索导航之文件名、符号名搜索
  4. ThinkPHP无限级分类(递归)
  5. Cannot resolve class or package 'mysql’处理方法
  6. Go语言协程并发---读写锁sync.RWMutex
  7. Camera噪声问题
  8. node和gulp版本的坑
  9. Python-selenium,切换句柄及封装
  10. Lombok——一款Java构建工具,“懒人”必备!!(idea版)