The Standalone Repository requires version 2.6.10 of MongoDB (or a later release in the 2.6.x series—MongoDB 3.x is not currently supported), which must be installed and running before running the Standalone Repository installer.
Download MongoDB 2.6.x (x64) from https://www.mongodb.org/downloads. Download the zip package, not the MSI.
Extract the contents to the root folder, e.g.
C:\. You should have a folder named something similar to
Rename the folder to
Make a new folder for logs:
Note: We recommend putting MongoDB's data on a separate drive. The remaining steps assume the
P:\ drive, but it can be any drive; just replace
P:\ with the drive you are using.
Make a new folder for the database:
Make a configuration file for mongod.exe in the
C:\mongodb folder. The configuration file is a text file (YAML format) named
mongod.cfg that should contain lines to configure the logging and data locations, as well
as a setting for the slow operation threshold. For example:
Important Note: The YAML format of the configuration above does not allow Tab characters. Use spaces instead.
Install MongoDB as a Windows Service by running this command from an Administrator command prompt:
C:\mongodb\bin\mongod.exe --config C:\mongodb\mongod.cfg --install
Start the service from the command prompt using the following command:
net start MongoDB
If the service fails to start, check the log (
C:\mongodb\log\mongo.log) for errors. Note that the service won't start if the logpath in the configuration file is pointing to a non-existent folder, or if the server can't
access it. It may also fail to start if the configuration file is improperly formatted.
Verify connectivity by running
C:\mongodb\bin\mongo.exe which will display an error if it can’t connect to the MongoDB server.
Per the MongoDB Production Notes, we recommend setting the Windows page file to the largest feasible multiple of