I installed MongoDB on ubuntu 11.04 then this site. I gave this command to operate MongoDB

sudo /etc/init.d/mongodb start

It demonstrated some error such as this

sudo: /etc/init.d/mongodb: command not found

I checked the file.However it was okay.Can anyone let me know how you can solve this.

Help me .I'm newbie to mongoDB. [edited] After I am hooking up to mongo it's showing error like

connecting to: test
Sun Jul  3 09:57:29 Error: couldn't connect to server shell/mongo.js:79

You might need to operate:

mongo --nodb

This labored for me personally.

I'd recommend using 10gen's instructions, found here: