Redis NOAUTH错误 – 尽pipe在我的redis.conf文件中禁用了身份validation

在本地运行我的应用程序对本地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) 

我相信我已经通过在configuration文件中使用这些行禁用身份validation:

 # 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 (eg 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] ,那么尽pipeconfiguration文件,redis将更改其authconfiguration。 之后,即使已连接的客户端也必须设置AUTH,否则他们将接收NOAUTH Authentication required

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