mongos.exe
On this page本页内容
Synopsis提要
mongos.exe
is the build of the MongoDB Shard (i.e. 是为Windows平台构建的MongoDB 分片(即mongos
) for the Windows platform. mongos
)。mongos.exe
has all of the features of 在类Unix平台上具有mongos
on Unix-like platforms and is completely compatible with the other builds of mongos
. mongos
的所有功能,并且与mongos
其他版本完全兼容。In addition, 此外,mongosexe提供了几个与Windows平台本身交互的选项。mongos.exe
provides several options for interacting with the Windows platform itself.
This document only references options that are unique to 本文档仅引用mongosexe独有的选项。mongos.exe
. All 所有mongos
options are available. mongos
选项都可用。See the 有关mongosexe的更多信息,请参阅mongos
and the Configuration File Options documents for more information regarding mongos.exe
.mongos
和配置文件选项文档。
To install and use 要安装和使用mongos.exe
, read the Install MongoDB Community Edition on Windows document.mongos.exe
,请阅读在Windows上安装MongoDB 社区版文档。
Options选项
--install
-
Installs将mongos.exe
as a Windows Service and exits.mongos.exe
安装为Windows服务并退出。If needed, you can install services for multiple instances of如果需要,您可以为mongos.exe
.mongos.exe
的多个实例安装服务。Install each service with a unique使用唯一的--serviceName
and--serviceDisplayName
.--serviceName
和--serviceDisplayName
安装每个服务。Use multiple instances only when sufficient system resources exist and your system design requires it.只有当存在足够的系统资源并且系统设计需要时,才能使用多个实例。
--remove
-
Removes the删除mongos.exe
Windows Service.mongos.exe
Windows服务。If如果mongos.exe
is running, this operation will stop and then remove the service.mongos.exe
正在运行,则此操作将停止,然后删除该服务。如果在--remove
requires the--serviceName
if you configured a non-default--serviceName
during the--install
operation.--install
操作期间配置了非默认的--serviceName
,那么--remove
需要--serviceName
。
--reinstall
-
Removes删除mongos.exe
and reinstallsmongos.exe
as a Windows Service.mongos.exe
并将mongos.exe
重新安装为Windows服务。
--serviceName name
-
Default: MongoS
Sets the service name of
mongos.exe
when running as a Windows Service. Use this name with thenet start <name>
andnet stop <name>
operations.You must use
--serviceName
in conjunction with either the--install
or--remove
option.
--serviceDisplayName <name>
-
Default: Mongo DB Router
Sets the name listed for MongoDB on the Services administrative application.
--serviceDescription <description>
-
Default: Mongo DB Sharding Router
Sets the
mongos.exe
service description.You must use
--serviceDescription
in conjunction with the--install
option.For descriptions that contain spaces, you must enclose the description in quotes.
--serviceUser <user>
-
Runs the
mongos.exe
service in the context of a certain user. This user 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>
formongos.exe
when running with the--serviceUser
option.You must use
--servicePassword
in conjunction with the--install
option.
mongod.exe
mongoldap
→