2015-05-23 07:00:48: connect failed
2015-05-23 07:00:49: can't connect
Address:127.0.0.1
PortNumber:28017(already tried 27017)
Unable to connect to 127.0.0.1
Authorization Skipped By You
mongodを使用して接続しようとすると、このエラーが発生します。IPとポート番号を変更しようとしましたが、何も機能しないようです。
のMongoDB設定を確認してくださいmongodb.conf
。
コメントbind_ip
行
#Listen to local interface only. Comment out to listen on all interfaces.
#bind_ip = 127.0.0.1
セキュリティ設定も確認してください
#auth = true
この設定を更新して、mongodbを再起動します。それが動作します
アクセスしているポートとMongoDBポートも確認してください
認証への参照は次のとおりですhttp://docs.mongodb.org/manual/core/authorization/
この記事はインターネットから収集されたものであり、転載の際にはソースを示してください。
侵害の場合は、連絡してください[email protected]
コメントを追加