gpt4 book ai didi

node.js - Redis NOAUTH 错误 - 尽管在我的 redis.conf 文件中禁用了身份验证

转载 作者:IT王子 更新时间:2023-10-29 06:09:48 26 4
gpt4 key购买 nike

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

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)

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

# 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?

并且不需要密码:

# 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

知道哪里出了问题吗?

最佳答案

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

尝试重新启动 redis 并提防有害的 lamers!

关于node.js - Redis NOAUTH 错误 - 尽管在我的 redis.conf 文件中禁用了身份验证,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/37314519/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com