首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >redis.conf错误-尽管禁用了我的redis.conf文件中的auth

redis.conf错误-尽管禁用了我的redis.conf文件中的auth
EN

Stack Overflow用户
提问于 2016-05-19 05:25:53
回答 2查看 4.8K关注 0票数 1

在本地对本地Redis实例运行应用程序时,我看到以下错误。

代码语言:javascript
复制
ReplyError: Ready check failed: NOAUTH Authentication required.
            at JavascriptReplyParser.Parser.returnError (/Users/Olegzandr/WebstormProjects/node_redis/index.js:193:31)
            at JavascriptReplyParser.run (/Users/Olegzandr/WebstormProjects/node_redis/node_modules/redis-parser/lib/javascript.js:135:18)
            at JavascriptReplyParser.execute (/Users/Olegzandr/WebstormProjects/node_redis/node_modules/redis-parser/lib/javascript.js:112:10)
            at Socket.<anonymous> (/Users/Olegzandr/WebstormProjects/node_redis/index.js:269:27)
            at emitOne (events.js:77:13)
            at Socket.emit (events.js:169:7)
            at readableAddChunk (_stream_readable.js:146:16)

我相信通过在配置文件中使用以下行,我已经禁用了身份验证:

代码语言:javascript
复制
# By default protected mode is enabled. You should disable it only if
# you are sure you want clients from other hosts to connect to Redis
# even if no authentication is configured, nor a specific set of interfaces
# are explicitly listed using the "bind" directive.
protected-mode no  #is this correct?

而且不需要密码:

代码语言:javascript
复制
# Require clients to issue AUTH <PASSWORD> before processing any other
# commands.  This might be useful in environments in which you do not trust
# others with access to the host running redis-server.
#
# This should stay commented out for backward compatibility and because most
# people do not need auth (e.g. they run their own servers).
#
# Warning: since Redis is pretty fast an outside user can try up to
# 150k passwords per second against a good box. This means that you should
# use a very strong password otherwise it will be very easy to break.
#
# requirepass foobared

知道有什么不对吗?

EN

回答 2

Stack Overflow用户

回答已采纳

发布于 2016-05-19 07:17:52

如果有人在运行redis实例中运行CONFIG SET REQUIREPASS [PWD],那么redis将不顾conf文件更改其auth配置。在此之后,即使已经连接的客户端也必须设置AUTH,否则他们将接收NOAUTH Authentication required

试着重新启动红宝石,小心有害的雷射!

票数 6
EN

Stack Overflow用户

发布于 2021-08-17 16:38:26

在redis-cli上,使用正确的密码(如果您错误地设置了密码)。然后将所需的通行证设置为空。这将解决这个问题。

代码语言:javascript
复制
AUTH <old-password>
CONFIG SET REQUIREPASS ""

注意:只有当您知道密码(意味着您已经将密码设置为任何redis实例)时,这才有效。如果没有,上述重新启动redis的解决方案应该有效。

票数 3
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/37314519

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档