Setting up the environment

To set up the environment in Windows, follow these instructions:

Create the config file (for example at C:\mongodb\mongo.conf) with the following contents:
systemLog:
 destination: file 
 path: "C:\\mongodb\\log\\mongo.log"
storage:
 dbPath: "C:\\mongodb\\data\\"
CAUTION: Make sure to use a text editor that can handle newlines. Examples: Notepad++, SciTE (if you don't have technical permission to install software on the system),…
CAUTION: This file format is white space sensitive. Make sure to use spaces instead of tabs for indentation.
Note: You are free to choose different folder locations, but make sure they all exist or MongoDB will fail to launch.