ERR 该实例已禁用集群支持

yal*_*ali 7 java spring-security redis spring-boot

我尝试使用有效的 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)
Run Code Online (Sandbox Code Playgroud)

我有cluster-enabled yes

Sho*_*hei 0

确保使用conf作为参数

redis-server redis.conf
Run Code Online (Sandbox Code Playgroud)