java - 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
解决方案
确保使用 conf 作为参数
redis-server redis.conf
推荐阅读
- html - 当我滚动我的网站时,它会停留在我页面的某个部分。如何修复粘滞的滚动条?
- jquery - jQuery.eCalendar() - 显示错误的日期
- reactjs - 我正在尝试为数组中的每个字符串创建一个不同的列表项
- python - pycharm pandas not module http client 仅在某些文件中出错,在控制台中运行
- javascript - 将输入标签值传输到 JavaScript 函数
- r - 根据选定的变量/列名称过滤和子集 R 数据框
- python - 无法在 Visual Studio Code 中导入“PIL”pylint(导入错误)
- java - 如何比较对象数组中对象的值?
- flutter - 即使在环境变量中添加路径后也无法识别 Flutter
- recurrence - 具有两个相互依赖变量的关系的递归关系解