Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

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.

http://antimalwarelab.com/installing-ubuntu-10-04-1-lts-64-bit-mongodb-2-0-3-lamp-and-rockmongo/

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

2 Answers 2

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 askubuntu.com/questions/109381/… –  pedalpete Jan 14 '13 at 1:16

If you followed these instructions instead:

http://docs.mongodb.org/manual/tutorial/install-mongodb-on-ubuntu/

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

 
discard

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.