解决spring4连接redis集群报错:CLUSTERDOWN The cluster is down(转载)

访客 MySQL 2023-12-04 11:00 1054

原因是redis出错了。解决方法如下:

1、使用命令检查REDIS状态: /java/redis/redis7000/src/redis-trib.rb check 192.168.249.230:7000

[ERR] Nodes don't agree about configuration!
>>> Check for open slots...
[WARNING] Node 192.168.249.230:7001 has slots in importing state (4658).
[WARNING] The following slots are open: 4658
>>> Check slots coverage...
[OK] All 16384 slots covered.

2、使用命令修复REDIS: /java/redis/redis7000/src/redis-trib.rb fix  192.168.249.230:7001

[OK] All nodes agree about slots configuration.
>>> Check for open slots...
>>> Check slots coverage...
[OK] All 16384 slots covered.

 

通过以上两步即可解决:CLUSTERDOWN The cluster is down

若报错:

需要安装ruby的环境,这里推荐使用yum install ruby安装

yum  install ruby

如果要升级ruby可参考:CentOS7如何升级ruby版本 https://www.cnblogs.com/hzcjd/p/13805366.html

 

原文链接:https://blog.csdn.net/yong472727322/article/details/76904565

相关推荐

评论列表
  • 这篇文章还没有收到评论,赶紧来抢沙发吧~
关闭

用微信“扫一扫”