ERR unknown subcommand: ERR unknown subcommand or wrong number of arguments(未知子命令或参数数量错误)
Redis含义
容器命令(如 CONFIG、CLIENT、ACL、XINFO)收到了无效的子命令,或子命令的参数数量错误。Redis 无法识别该子命令。
原因
子命令名拼写错误、所用 Redis 版本中没有该子命令、参数数量错误/缺失,或子命令语法不正确。
解决方法
使用正确的子命令名和参数;参考该命令的 HELP 子命令(如 CONFIG HELP、CLIENT HELP)。确认你的 Redis 版本支持该子命令。根据文档修正参数数量和语法。
同一数据库的其他条目
- ERR DUMP payload version or checksum are wrongERR DUMP payload version or checksum are wrong(DUMP 负载的版本或校验和错误)
- NOREPLICASNOREPLICAS Not enough good replicas to write(没有足够的正常副本可供写入)
- ERR This instance has cluster support disabledERR This instance has cluster support disabled(此实例已禁用集群支持)
- ERR Client sent AUTH, but no password is setERR AUTH <password> called without any password configured for the default user (Redis 6+) / ERR Client sent AUTH, but no password is set (Redis <6)(调用了 AUTH,但服务器未配置密码)
- ERR DEBUG command not allowedDEBUG command not allowed(不允许使用 DEBUG 命令)
- ERR Can't save in background: fork failedBackground save failed: fork failed(后台保存失败:fork 失败)
- NOPROTO unsupported protocol versionUnsupported RESP protocol version(不支持的 RESP 协议版本)