redis(错误)ERR 操作不允许 [英] redis (error) ERR operation not permitted

查看:85
本文介绍了redis(错误)ERR 操作不允许的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

突然间,我的 redis 数据库开始在某些连接上出错:

all of a sudden my redis database has started to give errors on some connections:

(error) ERR operation not permitted

我已经重新启动了 redis 服务,并使用正确的身份验证密钥与客户端连接到它,它每次都连接,但只在某些时候允许通过客户端进行数据库操作.

I've restarted the redis service and am connecting to it with the client using the correct auth key, it connects everytime but only allows db operations through the client only some of the time.

推荐答案

试试这个:

在您的 redis 配置文件中搜索上面的行以检查您是否设置了密码:

search for the line above in your on the redis config file to check if you have a password set:

requirepass foobared

如果该行没有被注释掉,那么你需要这样做:

If that line is not commented out, then you need to do this:

$redis-cli redis 127.0.0.1:6379> AUTH foobared 
OK

这篇关于redis(错误)ERR 操作不允许的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆