Unable to run mongodb

mongodb

#1

After running mongo command the following response is given:
2016-08-02T05:32:30.744+0000 warning: Failed to connect to 127.0.0.1:27017, reason: errno:111 Connection refused
2016-08-02T05:32:30.745+0000 Error: couldn’t connect to server 127.0.0.1:27017 (127.0.0.1), connection attempt failed at src/mongo/shell/mongo.js:146
exception: connect failed
Please help
Thanks


#2

Hey I am currently having the same problem. But try following this:

https://docs.c9.io/docs/setup-a-database

But when I get to the point “mongod --bind_ip=$IP --nojournal” I get the following line:

I NETWORK [initandlisten] waiting for connections on port 27017

Please report if you get the same :slight_smile:


#3

Ok I think I know what your problem might be now.

Look at the second answer here:

http://stackoverflow.com/questions/14435143/how-to-connect-mongodb-in-cloud9