node.js - Connection attempt failed when connecting to MongoDB deployment from mongo shell -


first question , complete beginner apologies in advanced silly mistakes.

i have created server on amazon web services , linked through mongodb cloud manager made replica set.

i have been following tutorial on mongodb cloud documentation have become stuck on final part - "connect mongodb process".

it says "cloud manager provides mongo shell command can use connect mongodb process if connecting system deployment runs" - can not because deployment running on amazon server?

when enter mongo shell command reads:

mongodb shell version: 3.0.4 connecting to: am-0.amigodb.0813.mongodbdns.com:27001/amigomain_1 2015-08-07t18:41:56.806+0100 w network   failed connect 52.18.23.14:27001 after 5000 milliseconds, giving up. 2015-08-07t18:41:56.809+0100 e query     error: couldn't connect server am-0.amigodb.0813.mongodbdns.com:27001       (52.18.23.14), connection attempt failed @ connect (src/mongo/shell/mongo.js:181:14) @ (connect):1:6 @ src/mongo/shell/mongo.js:181 exception: connect failed 

i followed instructions security settings on amazon web service thinking may have made mistake.

would appreciate or go answers.

thanks,

louis

mongo default listens connections on localhost. you'll need edit mongo.conf , add ip "bind ip" setting.


Comments

Popular posts from this blog

yii2 - Yii 2 Running a Cron in the basic template -

asp.net - 'System.Web.HttpContext' does not contain a definition for 'GetOwinContext' Mystery -

mercurial graft feature, can it copy? -