Skip to content

Instantly share code, notes, and snippets.

@alksl
Created September 24, 2014 14:44
Show Gist options
  • Save alksl/29072998d0b43d415eea to your computer and use it in GitHub Desktop.
Save alksl/29072998d0b43d415eea to your computer and use it in GitHub Desktop.
Setup MongoDB windows

Install MongoDB on windows

Fetch mongodb from http://www.mongodb.org/downloads

Select Windows x64

This guide explains the installation steps in detail

 http://docs.mongodb.org/manual/tutorial/install-mongodb-on-windows/

Short version

  • Install form the downloaded executable
  • Add mongo binaries to Path ( C:\Program Files\MongoDB 2.6 Standard\bin)
    • Select Control Panel
    • Search for environment variables
    • Select "Edit the system environment variables"
    • Click "Environment variables"
    • Append binary directory to Path
  • Create C:\data\db (make sure you have sufficent space)
  • Test to create a server instance with mongod in powershell
  • Test to use the server with mongo in another powershell
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment