- Grab the latest stable release from the download page
- Unzip the archive to a folder called
${MONGO_HOME}on your disk - Create a folder
/data/dbon the same drive/partition - Go to
${MONGO_HOME}/bin - Execute the binary
mongod(ormongod.exeon Windows)
For a more detailed explanation, see the MongoDB installation guide.
Before we start, we need some test data.
- Start the MongoDB shell by exectuing
mongo - Paste the code from
02_geospatial.jsinto the shell - Paste the code from
03_map_reduce.jsinto the shell