我有三个Redis服务器实例,运行sentinel和一个Lua脚本,以便让redis_exporter收集连接到Redis服务器的客户端列表。但是,当我将脚本传递给redis-cli命令时,会得到以下错误:
(error) ERR Error running script (call to f_4c6be190ef2981eda70d58ec0c959bd1ca2c5352): @user_script:10: @user_script: 10: This Redis command is not allowed from scripts这是我的Lua剧本:
local r = redis.call("CLIENT", "LIST")
return r有办法解决这个问题吗?
发布于 2019-11-20 06:43:56
一个快速的谷歌似乎是来自redis服务器本身,而不是图书馆。
CLIENT命令有一个no-script标志

https://github.com/antirez/redis/blob/fe5aea38c35e3fc35a744ad2de73543df553ae48/src/sentinel.c
https://stackoverflow.com/questions/58947190
复制相似问题