Cant start MongoDB in C9


Im trying to start MongoDB using the guidelines given in Documentation (below):

mkdir data echo ‘mongod --bind_ip=IP --dbpath=data --nojournal --rest "@"’ > mongod
$ chmod a+x mongod

However when I start the mongod-server Im getting the following errors:

MongoDB shell version: 2.6.11
connecting to: test
2016-02-02T11:59:58.505+0000 warning: Failed to connect to, reason: errno:111 Connection refused
2016-02-02T11:59:58.506+0000 Error: couldn’t connect to server (, connection attempt failed at src/mongo/shell/mongo.js:146
exception: connect failed

I already tried to set the IP to but that didnt work either. What are the correct values for IP and port in order to make it work? Should I manually set the IP and @ env variable or should it be set already?

Thanks a lot,

split this topic #2

2 posts were merged into an existing topic: Setting Up MongoDB

closed #3