(错误)ERR未知命令' debug'

时间:2016-12-06 13:25:44

标签: ruby debugging redis redis-cli

Redis版本:redis_version:2.8.19

我尝试启动此工具:https://github.com/snmaynard/redis-audit 但它失败并出现以下错误:

/var/lib/gems/2.1.0/gems/redis-3.3.2/lib/redis/pipeline.rb:129:in `value': ERR unknown command 'debug' (Redis::CommandError)
    from /var/lib/gems/2.1.0/gems/redis-3.3.2/lib/redis/pipeline.rb:121:in `_set'
    from /var/lib/gems/2.1.0/gems/redis-3.3.2/lib/redis/pipeline.rb:67:in `block in finish'
    from /var/lib/gems/2.1.0/gems/redis-3.3.2/lib/redis/pipeline.rb:66:in `each'
    from /var/lib/gems/2.1.0/gems/redis-3.3.2/lib/redis/pipeline.rb:66:in `each_with_index'
    from /var/lib/gems/2.1.0/gems/redis-3.3.2/lib/redis/pipeline.rb:66:in `each'
    from /var/lib/gems/2.1.0/gems/redis-3.3.2/lib/redis/pipeline.rb:66:in `map'
    from /var/lib/gems/2.1.0/gems/redis-3.3.2/lib/redis/pipeline.rb:66:in `finish'
    from /var/lib/gems/2.1.0/gems/redis-3.3.2/lib/redis/client.rb:157:in `block in call_pipeline'
    from /var/lib/gems/2.1.0/gems/redis-3.3.2/lib/redis/client.rb:293:in `with_reconnect'
    from /var/lib/gems/2.1.0/gems/redis-3.3.2/lib/redis/client.rb:155:in `call_pipeline'
    from /var/lib/gems/2.1.0/gems/redis-3.3.2/lib/redis.rb:2258:in `block in pipelined'
    from /var/lib/gems/2.1.0/gems/redis-3.3.2/lib/redis.rb:58:in `block in synchronize'
    from /usr/lib/ruby/2.1.0/monitor.rb:211:in `mon_synchronize'
    from /var/lib/gems/2.1.0/gems/redis-3.3.2/lib/redis.rb:58:in `synchronize'
    from /var/lib/gems/2.1.0/gems/redis-3.3.2/lib/redis.rb:2254:in `pipelined'
    from ./redis-audit.rb:120:in `audit_key'
    from ./redis-audit.rb:99:in `block in audit_keys'
    from ./redis-audit.rb:97:in `times'
    from ./redis-audit.rb:97:in `audit_keys'
    from ./redis-audit.rb:356:in `<main>'

当我从redis-cli执行debug object命令时,我得到同样的错误:

(error) ERR unknown command 'debug'

任何人都可以给我一个如何解决的建议吗?

1 个答案:

答案 0 :(得分:2)

Redis作为Amazon ElastiCache节点运行,因此调试命令因http://docs.aws.amazon.com/AmazonElastiCache/latest/UserGuide/ClientConfig.RestrictedCommands.html

而受到限制