Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 4 additions & 3 deletions source/includes/steps-run-mongodb-on-windows.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,10 @@ ref: create-data-dir
action:
- pre: |
MongoDB requires a :term:`data directory <dbpath>` 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
Expand Down
9 changes: 6 additions & 3 deletions source/tutorial/manage-mongodb-processes.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down