On windows mongod.exe has native support for installing and running as a windows service.
Service Related Commands
The three service related commands are:
mongod --install
mongod --service
mongod --remove
The --install and --remove options install and remove the mongo daemon as a windows service respectively. The --service option starts the service.
Whatever other services you pass to mongod.exe on the command line alongside --install are the arguments that the service is configured to execute mongod.exe with. Take for example the following command line:
mongod --bind_ip 127.0.0.1 --logpath d:\mongo\logs --logappend --dbpath d:\mongo\data --directoryperdb --install
Will cause a service to be created called Mongo that will execute the following command:
mongod --bind_ip 127.0.0.1 --logpath d:\mongo\logs --logappend --dbpath d:\mongo\data --directoryperdb
IF YOU HAVE A QUESTION, POST IT TO THE USER GROUP.
These pages are fine for comments, but for questions, your best bet will always be the MongoDB User Group. blog comments powered by Disqus