2016-05-19 5 views
1

ローカルのRedisインスタンスに対してローカルでアプリケーションを実行しているときに、次のエラーが発生します。Redis NOAUTHエラー - 私のredis.confファイルでauthを無効にしているにもかかわらず

# 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 

間違っている可能性がどのような任意のアイデアが

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) 

私は設定ファイルにこれらの行を使用して無効に認証を持っていると信じて?

+1

0.0.0.0にバインドしている場合は、おそらくハッキングされている可能性があります –

答えて

2

誰かが実行中のredisインスタンスでCONFIG SET REQUIREPASS [PWD]を実行すると、confisファイルにもかかわらずredisはauth configを変更します。その後、すでに接続されているクライアントでもAUTHを設定する必要があります。またはNOAUTH Authentication requiredを受信します。

危険なレーザーを再起動してください。

関連する問題