From 4cc311a2f0fe5d4f44cc39a2be36afd117141edd Mon Sep 17 00:00:00 2001 From: Andrew Aldridge Date: Thu, 1 Dec 2016 12:52:59 -0500 Subject: [PATCH] DOCS-9394: Explain how Windows paths work --- source/includes/steps-run-mongodb-on-windows.yaml | 7 ++++--- source/tutorial/manage-mongodb-processes.txt | 9 ++++++--- 2 files changed, 10 insertions(+), 6 deletions(-) diff --git a/source/includes/steps-run-mongodb-on-windows.yaml b/source/includes/steps-run-mongodb-on-windows.yaml index a30bae78861..b95929fa84e 100644 --- a/source/includes/steps-run-mongodb-on-windows.yaml +++ b/source/includes/steps-run-mongodb-on-windows.yaml @@ -4,9 +4,10 @@ ref: create-data-dir action: - pre: | MongoDB requires a :term:`data directory ` to store all - data. MongoDB's default data directory path is ``\data\db``. Create - this folder using the following commands from a :guilabel:`Command - Prompt`: + data. MongoDB's default data directory path is the absolute path + ``\data\db`` on the drive from which you start MongoDB. Create + this folder by running the following command in a + :guilabel:`Command Prompt`: language: powershell code: | md \data\db diff --git a/source/tutorial/manage-mongodb-processes.txt b/source/tutorial/manage-mongodb-processes.txt index f24cc6e6002..9ab5814f79c 100644 --- a/source/tutorial/manage-mongodb-processes.txt +++ b/source/tutorial/manage-mongodb-processes.txt @@ -32,9 +32,12 @@ instances. Start ``mongod`` Processes -------------------------- -By default, MongoDB stores data in the ``/data/db`` directory. On -Windows, MongoDB stores data in ``C:\data\db``. On all platforms, -MongoDB listens for connections from clients on port ``27017``. +By default, MongoDB listens for connections from clients on port +``27017``, and stores data in the ``/data/db`` directory. + +On Windows, this path is on the drive from which you start MongoDB. For +example, if you do not specify a :option:`--dbpath`, starting a MongoDB +server on the ``C:\`` drive stores all data files in ``C:\data\db``. To start MongoDB using all defaults, issue the following command at the system shell: