@@ -34,10 +34,12 @@ downloads page <http://www.mongodb.org/downloads>`_.
34
34
work in 32-bit Windows.
35
35
36
36
The 32-bit versions of MongoDB are suitable for testing and
37
- evaluation purposes but cannot use databases larger than 2GB.
37
+ evaluation purposes but can only support small databases and are
38
+ not appropriate for production deployments.
38
39
39
40
You can find the architecture of your version of Windows
40
- installation using the following command in the :guilabel:`Command Shell`
41
+ installation using the following command in the :guilabel:`Command
42
+ Shell`
41
43
42
44
.. code-block:: powershell
43
45
@@ -92,8 +94,8 @@ command sequence:
92
94
93
95
.. code-block:: powershell
94
96
95
- mkdir data
96
- mkdir data\db
97
+ md data
98
+ md data\db
97
99
98
100
.. note::
99
101
@@ -105,6 +107,14 @@ command sequence:
105
107
106
108
C:\mongodb\bin\mongod.exe --dbpath d:\test\mongodb\data
107
109
110
+ If your path includes spaces, enclose the entire path in double
111
+ quotations, for example:
112
+
113
+ .. code-block:: powershell
114
+
115
+ C:\mongodb\bin\mongod.exe --dbpath "d:\test\mongo db data"
116
+
117
+
108
118
Start MongoDB
109
119
~~~~~~~~~~~~~
110
120
@@ -169,18 +179,18 @@ MongoDB as a Windows Service
169
179
Setup MongoDB as a :guilabel:`Windows Service`, so that the database
170
180
will start automatically following each reboot cycle.
171
181
172
- Configure the MongoDB Service
173
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
182
+ Configure the System
183
+ ~~~~~~~~~~~~~~~~~~~~
174
184
175
- You must specify two options when running MongoDB as a Windows
176
- Service: a directory for the log output and a :doc:`configuration file
177
- </reference/configuration-options>`.
185
+ You should specify two options when running MongoDB as a Windows
186
+ Service: a path for the log output (i.e. :setting:`logpath`) and a
187
+ :doc:`configuration file </reference/configuration-options>`.
178
188
179
189
#. Create a specific directory for MongoDB log files:
180
190
181
191
.. code-block:: powershell
182
192
183
- mkdir C:\mongodb\log
193
+ md C:\mongodb\log
184
194
185
195
#. Create a configuration file for the :setting:`logpath` option for
186
196
MongoDB in the :guilabel:`Command Shell` by issuing this command:
@@ -189,6 +199,18 @@ Service: a directory for the log output and a :doc:`configuration file
189
199
190
200
echo logpath=C:\mongodb\log > C:\mongodb\mongodb.cfg
191
201
202
+ While these optional steps are optional, using the configuration file,
203
+ and creating a specific location for log files are good practice.
204
+
205
+ .. note::
206
+
207
+ Also consider setting the :setting:`logappend` option, otherwise,
208
+ :program:`mongod.exe` will delete the contents of the existing log
209
+ file when starting.
210
+
211
+ .. versionchanged:: 2.2
212
+ This behavior will change in the 2.2 release.
213
+
192
214
Install and Run the MongoDB Service
193
215
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
194
216
0 commit comments