Skip to content

Instantly share code, notes, and snippets.

@avlee
Created April 25, 2010 12:59
Show Gist options
  • Save avlee/378391 to your computer and use it in GitHub Desktop.
Save avlee/378391 to your computer and use it in GitHub Desktop.
Instructions for installing MongoDB as a Windows Service
--------------------------------------------------------
1: run the following command as an administrator
C:\MyPath\To\MongoDB\bin\mongod.exe --install
2: Open the following registry location in regedit.exe
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\services\MongoDB
3: Change the ImagePath key to the following, where [extra params] are any additional parameters for mongod.exe
"C:\MyPath\To\MongoDB\bin\mongod.exe --service [extra params]"
4: Start the Mongo DB service as normal
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment