我是靠谱客的博主 坚定大门,这篇文章主要介绍解决spring4连接redis集群报错:CLUSTERDOWN The cluster is down,现在分享给大家,希望可以做个参考。

原因是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

最后

以上就是坚定大门最近收集整理的关于解决spring4连接redis集群报错:CLUSTERDOWN The cluster is down的全部内容,更多相关解决spring4连接redis集群报错:CLUSTERDOWN内容请搜索靠谱客的其他文章。

本图文内容来源于网友提供,作为学习参考使用,或来自网络收集整理,版权属于原作者所有。
点赞(42)

评论列表共有 0 条评论

立即
投稿
返回
顶部