windows redis sentinel install

 windows redis sentinel install

1.下载 Redis-x64-2.8.2400

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


windows redis sentinel install
 

存在 一个 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


windows redis sentinel install
 

4. 命令 查看 状态


windows redis sentinel install
 


windows redis sentinel install
 

捐助开发者 

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


windows redis sentinel installwindows redis sentinel installwindows redis sentinel install
 
 
 谢谢您的赞助,我会做的更好!

相关推荐