Windows 7


Windows 7 & MongoDB01 May 2010 11:04 am

A few notes to save you some headaches while installing MongoDB as a service on Windows… It seems that it’s common to encounter the results below, so these are some things to remember.

Sat May 01 11:52:40 dbexit:
Sat May 01 11:52:40 shutdown: going to close listening sockets…
Sat May 01 11:52:40 shutdown: going to flush oplog…
Sat May 01 11:52:40 shutdown: going to close sockets…
Sat May 01 11:52:40 shutdown: waiting for fs preallocator…
Sat May 01 11:52:40 shutdown: closing all files…
Sat May 01 11:52:40 closeAllFiles() finished
Sat May 01 11:52:40 dbexit: really exiting now

  1. Create the data directory, by default that’s c:\data\db\
  2. It’s easy to forget, so remember to run cmd as Administrator! You won’t get UAC warnings, just the failures above.
  3. Install with the full path “c:\Program Files\mongodb-win32-x86_64-1.4.2\bin\mongod.exe” –install. If you don’t, the registry setting for the service won’t include the full path
  4. If you install from a path with spaces (i.e., Program Files) you’ll need to make sure it’s quoted in the registry (HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\services\MongoDB\ImagePath)

More on MongoDB in a later post…

Vista & Mac & Apple & Windows & Windows 713 Oct 2009 06:07 pm