windows redis sentinel install

本文涉及的产品
云数据库 Tair(兼容Redis),内存型 2GB
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
目录
相关文章
|
12天前
|
NoSQL Redis Windows
windows服务器重装系统之后,Redis服务如何恢复?
windows服务器重装系统之后,Redis服务如何恢复?
35 6
|
11天前
|
监控 NoSQL Redis
Redis Sentinel:秒杀系统背后的可靠性保障神器!
本文详细介绍了如何在个人项目中利用 Redis 哨兵模式保障系统的可靠性与高可用性。哨兵模式通过监控主从服务器状态、自动故障转移和通知客户端等功能,确保在主服务器宕机时系统仍能正常运行。适用于读请求多于写请求的场景,如秒杀系统,能有效缓解数据库压力。同时也探讨了哨兵模式在高并发场景下的优化方法及潜在缺陷,帮助开发者更好地应用该模式。
42 7
Redis Sentinel:秒杀系统背后的可靠性保障神器!
9-14|npm install --global windows-build-tools 安装太慢了,能够指定国内源
9-14|npm install --global windows-build-tools 安装太慢了,能够指定国内源
|
13天前
|
监控 NoSQL Redis
redis-server --service-install redis.windows.conf --loglevel verbose 命令的作用是什么?
redis-server --service-install redis.windows.conf --loglevel verbose 命令的作用是什么?
24 3
|
2月前
|
缓存 NoSQL Linux
【Azure Redis 缓存】Windows和Linux系统本地安装Redis, 加载dump.rdb中数据以及通过AOF日志文件追加数据
【Azure Redis 缓存】Windows和Linux系统本地安装Redis, 加载dump.rdb中数据以及通过AOF日志文件追加数据
【Azure Redis 缓存】Windows和Linux系统本地安装Redis, 加载dump.rdb中数据以及通过AOF日志文件追加数据
|
2月前
|
运维 监控 NoSQL
【Redis】哨兵(Sentinel)原理与实战全解~炒鸡简单啊
Redis 的哨兵模式(Sentinel)是一种用于实现高可用性的机制。它通过监控主节点和从节点,并在主节点故障时自动进行切换,确保集群持续提供服务。哨兵模式包括主节点、从节点和哨兵实例,具备监控、通知、自动故障转移等功能,能显著提高系统的稳定性和可靠性。本文详细介绍了哨兵模式的组成、功能、工作机制以及其优势和局限性,并提供了单实例的安装和配置步骤,包括系统优化、安装、配置、启停管理和性能监控等。此外,还介绍了如何配置主从复制和哨兵,确保在故障时能够自动切换并恢复服务。
|
2月前
|
缓存 NoSQL Redis
【Azure Redis 缓存】Windows版创建 Redis Cluster 实验 (精简版)
【Azure Redis 缓存】Windows版创建 Redis Cluster 实验 (精简版)
|
2月前
|
Linux Python Windows
【Azure 环境】Windows中安装Python azure-eventhub-checkpointstoreblob-aio模块时出错 ERROR: Could not install packages due to an EnvironmentError: [Errno 2] No such file or directory:
【Azure 环境】Windows中安装Python azure-eventhub-checkpointstoreblob-aio模块时出错 ERROR: Could not install packages due to an EnvironmentError: [Errno 2] No such file or directory:
|
NoSQL Redis Windows
Windows 下安装Redis
Windows 下安装Redis
122 0
Windows 下安装Redis
|
NoSQL Redis
windows32位下安装Redis
windows32位下安装Redis
517 0
windows32位下安装Redis
下一篇
无影云桌面