windows redis sentinel install

本文涉及的产品
云数据库 Redis 版,社区版 2GB
推荐场景:
搭建游戏排行榜
简介:  windows redis sentinel install   1.下载 Redis-x64-2.8.2400 https://github.com/ServiceStack/redis-windows/tree/master/downloads   存在 一个 windows service documentation.

 windows redis sentinel install

 

1.下载 Redis-x64-2.8.2400

https://github.com/ServiceStack/redis-windows/tree/master/downloads



 

存在 一个 windows service documentation.docx 

里面有安装教程,不过是非 哨兵模式

redis-server --service-install redis.windows.conf --loglevel verbose
redis-server --service-uninstall
redis-server --service-start
redis-server --service-stop
redis-server --service-install --service-name redisService1 --port 10001
redis-server --service-start --service-name redisService1
redis-server --service-install --service-name redisService2 --port 10002
redis-server --service-start --service-name redisService2
redis-server --service-install --service-name redisService3 --port 10003
redis-server --service-start --service-name redisService3

 我的实践  也是根据这几条命令

 

 

2.新增 配置文件 

2.1复制三个redis.windows.conf文件 redis6379.conf,redis6479.conf,redis6579.conf

redis6379.conf    (作为主节点)
	port 6379
	bind 127.0.0.1

redis6479.conf
	port 6479
	bind 127.0.0.1
	slaveof 127.0.0.1 6379 (注意:这里没有“:”)

redis6579.conf
	port 6579
	bind 127.0.0.1
	slaveof 127.0.0.1 6379

 

2.2 创建sentinel26379.conf, sentinel26479.conf, sentine26579.conf

sentinel26379.conf            (mymaster是名字)
	port 26379
	sentinel monitor mymaster 127.0.0.1 6379 2   
	sentinel down-after-milliseconds mymaster 5000 
	sentinel parallel-syncs mymaster 1 
	sentinel failover-timeout mymaster 15000

sentinel26479.conf            
	port 26479
	sentinel monitor mymaster 127.0.0.1 6479 2   
	sentinel down-after-milliseconds mymaster 5000 
	sentinel parallel-syncs mymaster 1 
	sentinel failover-timeout mymaster 15000

sentinel26579.conf            
	port 26579
	sentinel monitor mymaster 127.0.0.1 6579 2   
	sentinel down-after-milliseconds mymaster 5000 
	sentinel parallel-syncs mymaster 1 
	sentinel failover-timeout mymaster 15000

 

3.运行命令

redis-server --service-install  redis6379.conf --service-name redisService6379
redis-server --service-install  redis6479.conf --service-name redisService6479
redis-server --service-install  redis6579.conf --service-name redisService6579

redis-server --service-start --service-name redisService6379
redis-server --service-start --service-name redisService6479
redis-server --service-start --service-name redisService6579


redis-server --service-install  sentinel26379.conf --service-name sentinel26379 --sentinel
redis-server --service-install  sentinel26479.conf --service-name sentinel26479 --sentinel
redis-server --service-install  sentinel26579.conf --service-name sentinel26579 --sentinel

redis-server --service-start --service-name sentinel26379
redis-server --service-start --service-name sentinel26479
redis-server --service-start --service-name sentinel26579

 



 

 

 

 

4. 命令 查看 状态



 

 



 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

捐助开发者 

在兴趣的驱动下,写一个免费的东西,有欣喜,也还有汗水,希望你喜欢我的作品,同时也能支持一下。 当然,有钱捧个钱场(支持支付宝和微信 以及扣扣群),没钱捧个人场,谢谢各位。

 

个人主页http://knight-black-bob.iteye.com/



 
 
 谢谢您的赞助,我会做的更好!

相关实践学习
基于Redis实现在线游戏积分排行榜
本场景将介绍如何基于Redis数据库实现在线游戏中的游戏玩家积分排行榜功能。
云数据库 Redis 版使用教程
云数据库Redis版是兼容Redis协议标准的、提供持久化的内存数据库服务,基于高可靠双机热备架构及可无缝扩展的集群架构,满足高读写性能场景及容量需弹性变配的业务需求。 产品详情:https://www.aliyun.com/product/kvstore     ------------------------------------------------------------------------- 阿里云数据库体验:数据库上云实战 开发者云会免费提供一台带自建MySQL的源数据库 ECS 实例和一台目标数据库 RDS实例。跟着指引,您可以一步步实现将ECS自建数据库迁移到目标数据库RDS。 点击下方链接,领取免费ECS&RDS资源,30分钟完成数据库上云实战!https://developer.aliyun.com/adc/scenario/51eefbd1894e42f6bb9acacadd3f9121?spm=a2c6h.13788135.J_3257954370.9.4ba85f24utseFl
目录
相关文章
|
1月前
|
NoSQL 网络安全 Redis
用Windows连接Liunx中的redis
用Windows连接Liunx中的redis
26 0
|
3月前
|
NoSQL Redis Windows
windows环境启动redis-server.exe出现闪退问题解决方案(亲测有效)
windows环境启动redis-server.exe出现闪退问题解决方案(亲测有效)
213 0
|
1月前
|
NoSQL Java 应用服务中间件
使用innoSetup将mysql+nginx+redis+jar包打包成windows安装包
使用innoSetup将mysql+nginx+redis+jar包打包成windows安装包
使用innoSetup将mysql+nginx+redis+jar包打包成windows安装包
|
2月前
|
Dart Shell 开发工具
解决windows安装Flutter时出现Unknown operating system. Cannot install Dart SDK.问题
解决windows安装Flutter时出现Unknown operating system. Cannot install Dart SDK.问题
|
2月前
|
NoSQL 关系型数据库 MySQL
Windows、Linux、Mac安装数据库(mysql、MongoDB、Redis)#0
不同系统下进行MySQL安装、MongoDB安装、Redis安装【2月更文挑战第5天】
444 5
Windows、Linux、Mac安装数据库(mysql、MongoDB、Redis)#0
|
2月前
|
NoSQL Linux Redis
Redis--安装与配置(Linux与Windows)
Redis--安装与配置(Linux与Windows)
|
3月前
|
监控 NoSQL 程序员
Redis 高可用篇:你管这叫 Sentinel 哨兵集群原理
Redis 高可用篇:你管这叫 Sentinel 哨兵集群原理
77 5
|
3月前
|
NoSQL Linux Redis
Redis 6.X Sentinel 哨兵集群搭建
Redis 6.X Sentinel 哨兵集群搭建
32 5
|
1月前
|
安全 数据安全/隐私保护 Windows
解锁安全之门,Windows Server 2019密码修改攻略大揭秘
解锁安全之门,Windows Server 2019密码修改攻略大揭秘
|
1月前
|
存储 安全 网络安全
铁壁如墙-WINDOWS SERVER 2019勒索病毒终极防御指南
铁壁如墙-WINDOWS SERVER 2019勒索病毒终极防御指南

热门文章

最新文章