redis集群出现No reachable node in cluster
Exception in thread "main" redis.clients.jedis.exceptions.JedisNoReachableClusterNodeException: No reachable node in cluster
·
Exception in thread “main” redis.clients.jedis.exceptions.JedisNoReachableClusterNodeException: No reachable node in cluster
解决方式
1.使用 ps -ef |grep redis检查是否启动服务
ps -ef |grep redis
2.组合之前,请确保所有redis实例启动后,nodes-xxxx.conf文件都生成正常。(appendonly.aof 有没有不影响)
3.通过 cluster nodes 命令查看集群信息
cluster nodes
4.关闭防火墙(重点)
systemctl stop firewalld.service //检查半天发现是防火墙没有关
更多推荐
已为社区贡献3条内容
所有评论(0)