title: Running mongod as a windows service
body: <p>i have installed mongodb on  win32 and i am trying to run it as a service.</p>
  
  <p>I have followed the instructions posted here: <a href="http://www.deltasdevelopers.com/post/Running-MongoDB-as-a-Windows-Service.aspx" rel="nofollow noreferrer">http://www.deltasdevelopers.com/post/Running-MongoDB-as-a-Windows-Service.aspx</a></p>
  
  <p>but when when windows tries to 'load'/'run' the service there is a problem. I see the service under the services control banner constantly in the 'starting' state. </p>
  
  <p>The result: the service is not started and windows is constantly trying to start it without success.</p>
  
  <p>The instructions i have followed are:</p>
  
  <p>At the command line</p>
  
  <p>C:\mongodb\mongod -install
  then
  C:\mongodb\mongod -service</p>
  
  <p>Then i modified the Win Registry Entry for the MongoDB Service by setting the ImagePath key to the value of C:\mongodb\mongodb.exe -service </p>
  
  <p>Any advice? What am i doing wrong?</p>