- 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/db
on the same drive/partition - Go to
${MONGO_HOME}/bin
- Execute the binary
mongod
(ormongod.exe
on 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.js
into the shell - Paste the code from
03_map_reduce.js
into the shell