Skip to content

Commit 6f15923

Browse files
author
Sam Kleinman
committed
DOCS-155 adding notes to the windows tutorial to reflect Tad's commentss.
1 parent 93c5e27 commit 6f15923

File tree

1 file changed

+16
-3
lines changed

1 file changed

+16
-3
lines changed

source/tutorial/install-mongodb-on-windows.txt

Lines changed: 16 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -174,11 +174,17 @@ insert a record in the ``test`` :term:`collection` of the default
174174
MongoDB as a Windows Service
175175
----------------------------
176176

177-
.. versionadded:: 2.1.1
177+
.. versionadded:: 2.0
178178

179179
Setup MongoDB as a :guilabel:`Windows Service`, so that the database
180180
will start automatically following each reboot cycle.
181181

182+
.. note::
183+
184+
:program:`mongod.exe` added support for running as a Windows
185+
service in version 2.0, and :program:`mongos.exe` added support for
186+
running as a windows service in version 2.1.1.
187+
182188
Configure the System
183189
~~~~~~~~~~~~~~~~~~~~
184190

@@ -197,7 +203,7 @@ Service: a path for the log output (i.e. :setting:`logpath`) and a
197203

198204
.. code-block:: powershell
199205

200-
echo logpath=C:\mongodb\log > C:\mongodb\mongodb.cfg
206+
echo logpath=C:\mongodb\log > C:\mongodb\mongod.cfg
201207

202208
While these optional steps are optional, using the configuration file,
203209
and creating a specific location for log files are good practice.
@@ -221,8 +227,15 @@ Run all of the following commands in :guilabel:`Command Shell` with
221227

222228
.. code-block:: powershell
223229

224-
C:\mongodb\bin\mongod.exe --config C:\mongodb\mongodb.cfg --install
230+
C:\mongodb\bin\mongod.exe --config C:\mongodb\mongod.cfg --install
231+
232+
Modify the path to the ``monogd.cfg`` file as needed. For the
233+
``--install`` option to succeed, you *must* specify a
234+
:setting:`logpath` setting or the :option:`--logpath <mongod --logpath>`
235+
run-time option.
225236

237+
.. TODO fix --install link once mongod.exe manual page exists.
238+
226239
#. To run the MongoDB Service:
227240

228241
.. code-block:: powershell

0 commit comments

Comments
 (0)