mongos.exe
Synopsis
mongos.exe
is the build of the MongoDB Shard(i.e. mongos
) for the Windowsplatform. mongos.exe
has all of the features ofmongos
on Unix-like platforms and is completely compatiblewith the other builds of mongos
. In addition,mongos.exe
provides several options for interacting withthe Windows platform itself.
This document only references options that are unique tomongos.exe
. All mongos
options areavailable. See the mongos and theConfiguration File Options documents for moreinformation regarding mongos.exe
.
To install and use mongos.exe
, read theInstall MongoDB Community Edition on Windows document.
Options
If needed, you can install services for multiple instances ofmongos.exe. Install each service with a unique —serviceName
and —serviceDisplayName
. Use multiple instances only whensufficient system resources exist and your system design requires it.
—remove
- Removes the mongos.exe Windows Service. If mongos.exe isrunning, this operation will stop and then remove the service.
—remove
requires the —serviceName
if youconfigured a non-default —serviceName
during the—install
operation.
Sets the service name of mongos.exe when running as aWindows Service. Use this name with the net start <name>
andnet stop <name>
operations.
You must use —serviceName
in conjunction with eitherthe —install
or —remove
option.
Sets the name listed for MongoDB on the Services administrativeapplication.
Sets the mongos.exe service description.
You must use —serviceDescription
in conjunction with the—install
option.
For descriptions that contain spaces, you must enclose thedescription in quotes.
—serviceUser
<user>
- Runs the mongos.exe service in the context of a certain user. Thisuser must have “Log on as a service” privileges.
You must use —serviceUser
in conjunction with the—install
option.
—servicePassword
<password>
- Sets the password for
<user>
for mongos.exe when running withthe—serviceUser
option.
You must use —servicePassword
in conjunction with the—install
option.