Skip to content

Commit 73a1c7e

Browse files
author
Andrew Leung
committed
DOCS-223 MongoS.exe reference page
1 parent 9baa8b7 commit 73a1c7e

File tree

1 file changed

+100
-0
lines changed

1 file changed

+100
-0
lines changed

source/reference/mongos.exe.txt

Lines changed: 100 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,100 @@
1+
.. _mongos.exe:
2+
3+
.. default-domain:: mongodb
4+
5+
============================
6+
:program:`mongos.exe` Manual
7+
============================
8+
9+
Sypnosis
10+
--------
11+
12+
:program:`mongos.exe` is the build of the MongoDB Shard
13+
(i.e. :program:`mongos`) for the Windows
14+
platform. :program:`mongos.exe` has all of the features of
15+
:program:`mongos` on Unix-like platforms and is completely compatible
16+
with the other builds of :program:`mongos`. In addition,
17+
:program:`mongos.exe` provides several options for interacting with
18+
the Windows platform itself.
19+
20+
This document only references options that are unique to
21+
:program:`mongos.exe`. All :program:`mongos` options are
22+
available. See the ":doc:`/reference/mongos`" and the
23+
":doc:`/reference/configuration-options`" documents for more
24+
information regarding :program:`mongos.exe`.
25+
26+
To install and use :program:`mongos.exe`, read the
27+
":doc:`/tutorial/install-mongodb-on-windows`" document.
28+
29+
Options
30+
-------
31+
32+
.. program:: mongos.exe
33+
34+
.. option:: --install
35+
36+
Installs :program:`mongos.exe` as a Windows Service and exits.
37+
38+
.. option:: --remove
39+
40+
Removes the :program:`mongos.exe` Windows Service. If :program:`mongos.exe` is
41+
running, this operation will stop and then remove the service.
42+
43+
.. note::
44+
45+
:option:`--remove` requires the :option:`--serviceName` if you
46+
configured a non-default :option:`--serviceName` during the
47+
:option:`--install` operation.
48+
49+
.. option:: --reinstall
50+
51+
Removes :program:`mongos.exe` and reinstalls :program:`mongos.exe` as a Windows
52+
Service.
53+
54+
.. option:: --serviceName <name>
55+
56+
*Default*: "MongoS"
57+
58+
Set the service name of :program:`mongos.exe` when running as a
59+
Windows Service. Use this name with the ``net start <name>`` and
60+
``net stop <name>`` operations.
61+
62+
You must use :option:`--serviceName` in conjunction with either
63+
the :option:`--install` or :option:`--remove` install option.
64+
65+
.. option:: --serviceDisplayName <name>
66+
67+
*Default*: "Mongo DB Router"
68+
69+
Sets the name listed for MongoDB on the Services administrative
70+
application.
71+
72+
.. option:: --serviceDescription <description>
73+
74+
*Default*: "Mongo DB Sharding Router"
75+
76+
Sets the :program:`mongos.exe` service description.
77+
78+
You must use :option:`--serviceDescription` in conjunction with the
79+
:option:`--install` option.
80+
81+
.. note::
82+
83+
For descriptions that contain spaces, you must enclose the
84+
description in quotes.
85+
86+
.. option:: --serviceUser <user>
87+
88+
Runs the :program:`mongos.exe` service in the context of a certain user. This
89+
user must have "Log on as a service" privileges.
90+
91+
You must use :option:`--serviceUser` in conjunction with the
92+
:option:`--install` option.
93+
94+
.. option:: --servicePassword <password>
95+
96+
Sets the password for ``<user>`` for :program:`mongos.exe` when running with
97+
the :option:`--serviceUser` option.
98+
99+
You must use :option:`--servicePassword` in conjunction with the
100+
:option:`--install` option.

0 commit comments

Comments
 (0)