Skip to content

Commit 46dda46

Browse files
committed
note on dbpath when installing as Windows Service
If user has choose alternative location for dbpath, same should be provided while installing as windows service, a note about same was added as nothing found currently mentioning about same
1 parent 117f680 commit 46dda46

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

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

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -250,6 +250,16 @@ Run all of the following commands in :guilabel:`Command Shell` with
250250
:setting:`logpath` setting or the :option:`--logpath <mongod --logpath>`
251251
run-time option.
252252

253+
.. note::
254+
255+
If you had specified alternate path for \data\db, please provide dbpath option when installing
256+
257+
.. code-block:: powershell
258+
259+
C:\mongodb\bin\mongod.exe --config C:\mongodb\mongod.cfg --dbpath d:\test\mongodb\data --install
260+
261+
else you may see error in starting service like "System error 1067 has occurred"
262+
253263
.. TODO fix --install link once mongod.exe manual page exists.
254264

255265
#. To run the MongoDB Service:

0 commit comments

Comments
 (0)