I'm starting MongoDB using the following command:
sumeet@sumeet-acer:~$ sudo service mongod start
I get a reply as:
mongod start/running, process 7209
sumeet@sumeet-acer:~$
But when I try to enter MongoDB shell by typing mongo
I get the following error:
sumeet@sumeet-acer:~$ mongo
MongoDB shell version: 2.0.4
connecting to: test
Fri Jun 12 14:01:59 Error: couldn't connect to server 127.0.0.1 shell/mongo.js:84
exception: connect failed