Running MongoDB as a Windows Service
Following on from my opening “Getting started with MongoDB and .NET” post, one of the next logical steps was to get mongodb running as a Windows service.
From a command prompt, in the mongodb bin directory run:
mongod --install --serviceName "MongoDB" --dbpath C:\mongodb\data\db --logpath C:\mongodb\logs\mongolog.txt --logappend Obviously you can tweak the arguments for your environment - I opted to use a different dbpath to the default \data\db
Starting the service is then just a case of running:
[Read More]