redis-cluster集群安装(windows)
在此先奉上安装包(链接: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. 测试是否成功
最新文章
- c#常用方法
- Python 局部变量与全局变量
- ubuntu下 too many file open 异常
- OC基础数据类型-NSData-NSMutableData-NSString
- static关键字总结
- DNS劫持和DNS污染解决办法
- CodeSmith Template Model Output
- cf498C Array and Operations
- robot framework-databaselibaray库使用(python)(转)
- find 路径必须在表达式之前
- python+selenium自动化软件测试(第11章):持续集成jenkins和GitHub的使用
- 《Linux命令行与shell脚本编程大全》- 读书笔记2 - 更多的bash shell命令
- CMDB服务器管理系统【s5day92】:定制表头
- 2 Class类
- redis.conf 常见配置介绍
- 解决beego中同时开启http和https时,https端口占用问题
- 解决IIS8中 URLRewriter 不能使用的方法
- Android native层动态库注射
- nginx:负载均衡的session共享
- Linux下利用Ret2Libc绕过DEP
热门文章
- Linux 性能监控工具
- Module not found: Error: Can't resolve 'less-loader' in ' xxx' (Day_40)
- Pycharm搜索导航之文件名、符号名搜索
- ThinkPHP无限级分类(递归)
- Cannot resolve class or package 'mysql’处理方法
- Go语言协程并发---读写锁sync.RWMutex
- Camera噪声问题
- node和gulp版本的坑
- Python-selenium,切换句柄及封装
- Lombok——一款Java构建工具,“懒人”必备!!(idea版)