Redis Error: "ERR DEBUG command not allowed."

Redis Error: "ERR DEBUG command not allowed."

·

1 min read

Redis 安装之后,默认不允许使用 DEBUG 这个命令,我们只需要修改一些配置文件就可以了。

修改配置文件 /etc/redis/redis.conf,修改 enable-debug-command no,修改为 enable-debug-command yes,并且解开注释,然后重启。

redis-config

重启服务:

sudo systemctl restart redis-server