Cant start MongoDB in C9


#1

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
./mongod
mongo

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 0.0.0.1:27017, reason: errno:111 Connection refused
2016-02-02T11:59:58.506+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

I already tried to set the IP to 127.0.0.1 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,
Mika


#2

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


#3