Run MongoDB on Windows

From Soma-notes
Revision as of 03:38, 25 January 2014 by Soma (talk | contribs) (Created page with "To get MongoDB running on a recent version of Windows (preferably 64-bit): * Download and unzip the current version of [http://www.mongodb.org/downloads MongoDB]. * Unpack thi...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

To get MongoDB running on a recent version of Windows (preferably 64-bit):

  • Download and unzip the current version of MongoDB.
  • Unpack this zip file in your Program Files directory, calling in mongodb.
  • Add C:\Program Files\mongodb\bin to your PATH environment variable by going to System->Advanced System Settings->Environment Variables. (System can be accessed by right-clicking on the start menu/start icon.)
  • Create the directory C:\data\db
  • You can run MongoDB now by typing mongod at a command prompt. If you want your databases to be elsewhere, type mongodb --dbpath /path/to/db