- Reference >
- MongoDB Package Components >
mongod.exe
mongod.exe¶
Synopsis¶
mongod.exe is the build of the MongoDB daemon
(i.e. mongod) for the Windows
platform. mongod.exe has all of the features of
mongod on Unix-like platforms and is completely compatible
with the other builds of mongod. In addition,
mongod.exe provides several options for interacting with
the Windows platform itself.
This document only references options that are unique to
mongod.exe. All mongod options are
available. See the mongod and the
Configuration File Options documents for more
information regarding mongod.exe.
To install and use mongod.exe, read the
Install MongoDB on Windows document.
Options¶
-
mongod.exe¶
-
--install¶ Installs
mongod.exeas a Windows Service and exits.
-
--remove¶ Removes the
mongod.exeWindows Service. Ifmongod.exeis running, this operation will stop and then remove the service.Note
--removerequires the--serviceNameif you configured a non-default--serviceNameduring the--installoperation.
-
--reinstall¶ Removes
mongod.exeand reinstallsmongod.exeas a Windows Service.
-
--serviceName<name>¶ Default: “MongoDB”
Set the service name of
mongod.exewhen running as a Windows Service. Use this name with thenet start <name>andnet stop <name>operations.You must use
--serviceNamein conjunction with either the--installor--removeinstall option.
-
--serviceDisplayName<name>¶ Default: “Mongo DB”
Sets the name listed for MongoDB on the Services administrative application.
-
--serviceDescription<description>¶ Default: “MongoDB Server”
Sets the
mongod.exeservice description.You must use
--serviceDescriptionin conjunction with the--installoption.Note
For descriptions that contain spaces, you must enclose the description in quotes.
-
--serviceUser<user>¶ Runs the
mongod.exeservice in the context of a certain user. This user must have “Log on as a service” privileges.You must use
--serviceUserin conjunction with the--installoption.
-
--servicePassword<password>¶ Sets the password for
<user>formongod.exewhen running with the--serviceUseroption.You must use
--servicePasswordin conjunction with the--installoption.