Installing MongoDB
MongoDB can also be easily downloaded by visiting the official MongoDB website and accessing the downloads section from http://www.mongodb.org/downloads.
Once there, be sure to download the correct version depending on your OS and CPU (32 or 64 bit). For Windows users, you can opt to download the MSI installer file, which will make the installation much simpler.
Note
Depending on the version of MongoDB you downloaded, you will want to replace <version>
in the following sections with the appropriate version number that matches your file.
Mac OS X installation instructions
If you are using the Homebrew package manager, MongoDB can be installed using the following two commands:
$ brew update $ brew install mongoDB
The remainder of this chapter assumes you are not using Homebrew and need to install MongoDB manually. If you are installing MongoDB via Homebrew, you can proceed directly to the testing MongoDB installation section.
After completing the download, open and extract...