Redis报错:ERR This instance has cluster support disabled

Posted feiquan

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了Redis报错:ERR This instance has cluster support disabled相关的知识,希望对你有一定的参考价值。

异常分析
从报错误的信息ERR This instance has cluster support disabled很明显看得出来,是没有启动redis集群功能,可是我项目配置的集群的配置方式,要么修改代码为单机配置,要么修改redis为集群方式。

解决办法

在安装redis的目录找到redis配置文件redis.conf,里面会找到配置:

# cluster-enabled yes

把注释去掉就可以了

cluster-enabled yes

以上是关于Redis报错:ERR This instance has cluster support disabled的主要内容,如果未能解决你的问题,请参考以下文章

Redis troughs (ERR operation not allowed) 正常运行 1 到 2 小时后仍报错

Redis报错:ERR Operation against a key holding the wrong kind of value 解决处理

Redis报错:ERR Operation against a key holding the wrong kind of value 解决处理

clon远程项目后,npm install 报错——cb() never called!This is an error with npm itself. Please report this err

解决:redis.clients.jedis.exceptions.JedisDataExceptionERR This instance has cluster support disabled

(在本地运行项目)npm报错:npm ERR! missing script: start npm ERR! A complete log of this run can be found in: