Redis Cluster 集群

本文记录了配置和使用Redis Cluster的过程,包括解决启动单节点集群报错、多个节点未级联的问题,以及Ruby环境安装Redis接口和Redis Desktop Manager进行数据管理的操作。

记个链接: https://www.cnblogs.com/ryanzheng/p/8075221.html

用了redis集群,所以不仅要起三个端口的redis服务,还要把三个集群连起来。

1, 起了集群的不能只用一个node,不然报错:

spring.redis.cluster.nodes=localhost:6379

org.springframework.data.redis.RedisConnectionFailureException: Unable to connect to Redis;

Cannot retrieve initial cluster partitions from initial URIs [RedisURI [host='localhost', port=6379]]
Caused by: io.lettuce.core.RedisCommandExecutionException: ERR This instance has cluster support disabled

2, 起了多个端口,但是没级联的报错:

spring.redis.cluster.nodes=localhost

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值