windows redis sentinel install

简介:  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/



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

目录
相关文章
|
NoSQL Redis 数据安全/隐私保护
Redis 最流行的图形化界面下载及使用超详细教程(带安装包)! redis windows客户端下载
文章提供了Redis最流行的图形化界面工具Another Redis Desktop Manager的下载及使用教程,包括如何下载、解压、连接Redis服务器以及使用控制台和查看数据类型详细信息。
3992 6
Redis 最流行的图形化界面下载及使用超详细教程(带安装包)! redis windows客户端下载
|
8月前
|
消息中间件 NoSQL Linux
Redis的基本介绍和安装方式(包括Linux和Windows版本),以及常用命令的演示
Redis(Remote Dictionary Server)是一个高性能的开源键值存储数据库。它支持字符串、列表、散列、集合等多种数据类型,具有持久化、发布/订阅等高级功能。由于其出色的性能和广泛的使用场景,Redis在应用程序中常作为高速缓存、消息队列等用途。
944 16
|
NoSQL Redis 数据库
Redis 图形化界面下载及使用超详细教程(带安装包)! redis windows下客户端下载
文章提供了Redis图形化界面工具的下载及使用教程,包括如何连接本地Redis服务器、操作键值对、查看日志和使用命令行等功能。
3071 0
Redis 图形化界面下载及使用超详细教程(带安装包)! redis windows下客户端下载
|
NoSQL Linux PHP
如何在不同操作系统上安装 Redis 服务器,包括 Linux 和 Windows 的具体步骤
本文介绍了如何在不同操作系统上安装 Redis 服务器,包括 Linux 和 Windows 的具体步骤。接着,对比了两种常用的 PHP Redis 客户端扩展:PhpRedis 和 Predis,详细说明了它们的安装方法及优缺点。最后,提供了使用 PhpRedis 和 Predis 在 PHP 中连接 Redis 服务器及进行字符串、列表、集合和哈希等数据类型的基本操作示例。
572 4
|
监控 NoSQL Redis
Redis Sentinel:秒杀系统背后的可靠性保障神器!
本文详细介绍了如何在个人项目中利用 Redis 哨兵模式保障系统的可靠性与高可用性。哨兵模式通过监控主从服务器状态、自动故障转移和通知客户端等功能,确保在主服务器宕机时系统仍能正常运行。适用于读请求多于写请求的场景,如秒杀系统,能有效缓解数据库压力。同时也探讨了哨兵模式在高并发场景下的优化方法及潜在缺陷,帮助开发者更好地应用该模式。
327 7
Redis Sentinel:秒杀系统背后的可靠性保障神器!
|
监控 NoSQL 算法
Redis Sentinel(哨兵)详解
Redis Sentinel(哨兵)详解
586 4
|
NoSQL Redis 数据库
Redis Windows版下载,带安装包
文章提供了Windows版Redis的下载和安装指南,包括如何解压、启动Redis服务以及连接到Redis数据库。
6051 0
Redis Windows版下载,带安装包
9-14|npm install --global windows-build-tools 安装太慢了,能够指定国内源
9-14|npm install --global windows-build-tools 安装太慢了,能够指定国内源
|
Java UED Sentinel
微服务守护神:Spring Cloud Sentinel,让你的系统在流量洪峰中稳如磐石!
【8月更文挑战第29天】Spring Cloud Sentinel结合了阿里巴巴Sentinel的流控、降级、熔断和热点规则等特性,为微服务架构下的应用提供了一套完整的流量控制解决方案。它能够有效应对突发流量,保护服务稳定性,避免雪崩效应,确保系统在高并发下健康运行。通过简单的配置和注解即可实现高效流量控制,适用于高并发场景、依赖服务不稳定及资源保护等多种情况,显著提升系统健壮性和用户体验。
329 1
|
监控 Java Sentinel
使用Sentinel进行服务调用的熔断和限流管理(SpringCloud2023实战)
Sentinel是面向分布式、多语言异构化服务架构的流量治理组件,主要以流量为切入点,从流量路由、流量控制、流量整形、熔断降级、系统自适应过载保护、热点流量防护等多个维度来帮助开发者保障微服务的稳定性。
768 3