/
mongod.exe.txt
115 lines (72 loc) · 3.2 KB
/
mongod.exe.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
==============
``mongod.exe``
==============
.. default-domain:: mongodb
.. contents:: On this page
:local:
:backlinks: none
:depth: 1
:class: singlecol
Synopsis
--------
:binary:`~bin.mongod.exe` is the build of the MongoDB daemon
(i.e. :binary:`~bin.mongod`) for the Windows
platform. :binary:`~bin.mongod.exe` has all of the features of
:binary:`~bin.mongod` on Unix-like platforms and is completely compatible
with the other builds of :binary:`~bin.mongod`. In addition,
:binary:`~bin.mongod.exe` provides several options for interacting with
the Windows platform itself.
This document *only* references options that are unique to
:binary:`~bin.mongod.exe`. All :binary:`~bin.mongod` options are
available. See the :doc:`/reference/program/mongod` and the
:doc:`/reference/configuration-options` documents for more
information regarding :binary:`~bin.mongod.exe`.
To install and use :binary:`~bin.mongod.exe`, read the
:doc:`/tutorial/install-mongodb-on-windows` document.
Options
-------
.. binary:: mongod.exe
.. program:: mongod.exe
.. option:: --install
Installs :program:`mongod.exe` as a Windows Service and exits.
If needed, you can install services for multiple instances of
:program:`mongod.exe`. Install each service with a unique :option:`--serviceName`
and :option:`--serviceDisplayName`. Use multiple instances only when
sufficient system resources exist and your system design requires it.
.. option:: --remove
Removes the :program:`mongod.exe` Windows Service. If :program:`mongod.exe` is
running, this operation will stop and then remove the service.
:option:`--remove` requires the :option:`--serviceName` if you
configured a non-default :option:`--serviceName` during the
:option:`--install` operation.
.. option:: --reinstall
Removes :program:`mongod.exe` and reinstalls :program:`mongod.exe`
as a Windows Service.
.. option:: --serviceName name
*Default*: MongoDB
Sets the service name of :program:`mongod.exe` when running as a
Windows Service. Use this name with the ``net start <name>`` and
``net stop <name>`` operations.
You must use :option:`--serviceName` in conjunction with either
the :option:`--install` or :option:`--remove` option.
.. option:: --serviceDisplayName <name>
*Default*: MongoDB
Sets the name listed for MongoDB on the Services administrative
application.
.. option:: --serviceDescription <description>
*Default*: MongoDB Server
Sets the :program:`mongod.exe` service description.
You must use :option:`--serviceDescription` in conjunction with the
:option:`--install` option.
For descriptions that contain spaces, you must enclose the
description in quotes.
.. option:: --serviceUser <user>
Runs the :program:`mongod.exe` service in the context of a certain user. This
user must have "Log on as a service" privileges.
You must use :option:`--serviceUser` in conjunction with the
:option:`--install` option.
.. option:: --servicePassword <password>
Sets the password for ``<user>`` for :program:`mongod.exe` when running with
the :option:`--serviceUser` option.
You must use :option:`--servicePassword` in conjunction with the
:option:`--install` option.