October 2, 2010 | In: MongoDB
Problem starting MongoDB as Windows service – solved
I started using Django-MongoDB duet which looks really interesting, when I faced the first problem: my MongoDB server couldn’t be started as a Windows service.
I tried:
mongod.exe --logpath="logs dir" --install
which installed service correctly. But the service couldn’t be started. Running command
net start MongoDB
ended with error “service doesn’t react on a control function” (or something like that)
If you have the same problem you need to:
- Open Windows registry (probably C:\Windows\System\regedit.exe)
- Go to: HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\MongoDB
- Check if ImagePath value is valid – in my case there were apostrophes ommited in–logpath (which is required since my logpath was pointed to “Program Files” directory)
This should help.