mongodb - Mongo shell can't connect to server -


this must simple problem, i've followed excellent , simple documentation provided @ https://docs.c9.io/setting_up_mongodb.html , read every cloud9-ide tagged question includes 'mongodb' - no avail. i'd appreciate possible.

following directions referenced above, appear able mongo running fine. (see below.)

however, when try shell - instructed - following error:

cliffchaney@sacs:~/workspace $ mongo --host $ip mongodb shell version: 2.6.4 connecting to: 0.0.0.0:27017/test 2014-09-10t17:53:55.570+0000 error: couldn't connect server 0.0.0.0:27017 (0.0.0.0), address resolved 0.0.0.0 @ src/mongo/shell/mongo.js:148 exception: connect failed 

any suggestions?

as noted, appears can mongod running. after following mentioned instructions, can execute following (though warning):

cliffchaney@sacs:~/workspace $ ./mongod 2014-09-10t17:52:29.370+0000 ** warning: --rest specified without --httpinterface, 2014-09-10t17:52:29.370+0000 **          enabling http interface warning: bind_ip of 0.0.0.0 unnecessary; listens on ips default 2014-09-10t17:52:29.376+0000 [initandlisten] mongodb starting : pid=1345 port=27017 dbpath=data 64-bit host=cliffchaney-sacs-983224 2014-09-10t17:52:29.376+0000 [initandlisten] db version v2.6.4 2014-09-10t17:52:29.376+0000 [initandlisten] git version: 3a830be0eb92d772aa855ebb711ac91d658ee910 2014-09-10t17:52:29.376+0000 [initandlisten] build info: linux build7.nj1.10gen.cc 2.6.32-431.3.1.el6.x86_64 #1 smp fri jan 3 21:39:27 utc 2014 x86_64 boost_lib_version=1_49 2014-09-10t17:52:29.376+0000 [initandlisten] allocator: tcmalloc 2014-09-10t17:52:29.376+0000 [initandlisten] options: { net: { bindip: "0.0.0.0", http: { restinterfaceenabled: true, enabled: true } }, storage: { dbpath: "data", journal: { enabled: false } } } 2014-09-10t17:52:29.389+0000 [initandlisten] waiting connections on port 27017 2014-09-10t17:52:29.389+0000 [websvr] admin web console waiting connections on port 28017 2014-09-10t17:53:29.389+0000 [clientcursormon] mem (mb) res:51 virt:238 2014-09-10t17:53:29.389+0000 [clientcursormon]  mapped:80 2014-09-10t17:53:29.389+0000 [clientcursormon]  connections:0 2014-09-10t17:58:29.399+0000 [clientcursormon] mem (mb) res:52 virt:239 2014-09-10t17:58:29.399+0000 [clientcursormon]  mapped:80 2014-09-10t17:58:29.399+0000 [clientcursormon]  connections:0 2014-09-10t18:03:29.410+0000 [clientcursormon] mem (mb) res:52 virt:239 2014-09-10t18:03:29.410+0000 [clientcursormon]  mapped:80 2014-09-10t18:03:29.410+0000 [clientcursormon]  connections:0* 

you can access shell prompt running

$ mongo 

without --host argument.


Comments

Popular posts from this blog

javascript - how to protect a flash video from refresh? -

android - Associate same looper with different threads -

visual studio 2010 - Connect to informix database windows form application -