首页 > 解决方案 > ERR 此实例已禁用集群支持

问题描述

我正在尝试使用有效的 URL 和端口连接到集群 Redis,但出现此错误:

Caused by: io.lettuce.core.RedisCommandExecutionException: ERR This instance has cluster support disabled
    at io.lettuce.core.ExceptionFactory.createExecutionException(ExceptionFactory.java:135)
    at io.lettuce.core.ExceptionFactory.createExecutionException(ExceptionFactory.java:108)
    at io.lettuce.core.protocol.AsyncCommand.completeResult(AsyncCommand.java:118)
    at io.lettuce.core.protocol.AsyncCommand.complete(AsyncCommand.java:109)

我有cluster-enabled yes

标签: javaspring-bootspring-securityredis

解决方案


确保使用 conf 作为参数

redis-server redis.conf

推荐阅读