Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I've just installed mongodb, and had to install 2.0.4, which I couldn't figure out how to do with 10gen, so followed this tutorial and installed from the tar file.

Now, in order to start the server, I have to go to ~/mongodb-linux-x86_64-2.0.4/bin and then type ./mongod. But all the guides I see online say to just type mongod at the command line.

What do I need to set-up in order to not have to go through the path?

share|improve this question
up vote 1 down vote accepted

You need to add the ~/mongodb-linux-x86_64-2.0.4/bin to your PATH. Not sure which distro you use. but just google it.

share|improve this answer
Thanks, this link provided the appropriate directions… – pedalpete Jan 14 '13 at 1:16

If you followed these instructions instead:

I don't think you would be having those issues with your $PATH. As of writing this, 2.0.4 is several revisions old even in the 2.0 branch (now 2.0.8) and 2.2.3 has just hit RC status. I would recommend using something more up to date.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.