Skip to content

Commit 932730b

Browse files
andf-mongodbkay-kim
authored andcommitted
DOCSP-7259 data and log dir changes and sudo for meeting 3
1 parent 4993c40 commit 932730b

File tree

4 files changed

+7
-28
lines changed

4 files changed

+7
-28
lines changed

source/includes/steps-run-mongodb-on-linux-tarball.yaml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -14,22 +14,22 @@ content: |
1414
1515
.. code-block:: sh
1616
17-
sudo mkdir -p /data/db
17+
sudo mkdir -p /var/lib/mongo
1818
1919
Create a directory where the MongoDB instance stores its log. For example:
2020
2121
.. code-block:: sh
2222
23-
sudo mkdir -p /data/logs
23+
sudo mkdir -p /var/log/mongodb
2424
2525
The user that starts the MongoDB process must have read and write
26-
permission to the directories. For example, if you intend to run
26+
permission to these directories. For example, if you intend to run
2727
MongoDB as yourself:
2828
2929
.. code-block:: sh
3030
31-
sudo chown `whoami` /data/db # Or substitute another user
32-
sudo chown `whoami` /data/logs # Or substitute another user
31+
sudo chown `whoami` /var/lib/mongo # Or substitute another user
32+
sudo chown `whoami` /var/log/mongodb # Or substitute another user
3333
3434
---
3535
title: Run MongoDB.
@@ -39,7 +39,7 @@ content: |
3939
4040
.. code-block:: sh
4141
42-
mongod --dbpath /data/db --logpath /data/logs/mongod.log --fork
42+
mongod --dbpath /var/lib/mongo --logpath /var/log/mongodb/mongod.log --fork
4343
4444
For details on the command-line options :option:`--dbpath <mongod
4545
--dbpath>` and :option:`--logpath <mongod --logpath>`, see
@@ -51,7 +51,7 @@ ref: verify
5151
pre: |
5252
Verify that MongoDB has started successfully by
5353
checking the process output for the following line in the
54-
log file ``/data/logs/mongod.log``:
54+
log file ``/var/log/mongodb/mongod.log``:
5555
action:
5656
language: none
5757
copyable: false

source/tutorial/install-mongodb-enterprise-on-ubuntu-tarball.txt

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -118,11 +118,4 @@ Configuration
118118
either the command-line options or a :ref:`configuration file
119119
<conf-file>`.
120120

121-
.. note::
122-
123-
Although the following procedure uses ``sudo`` to start the MongoDB
124-
instance as well as to create the directories used by the MongoDB
125-
instance, you may choose to perform the procedure as a different
126-
user.
127-
128121
.. include:: /includes/steps/run-mongodb-on-linux-tarball.rst

source/tutorial/install-mongodb-on-amazon-tarball.txt

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -84,11 +84,4 @@ Configuration
8484
either the command-line options or a :ref:`configuration file
8585
<conf-file>`.
8686

87-
.. note::
88-
89-
Although the following procedure uses ``sudo`` to start the MongoDB
90-
instance as well as to create the directories used by the MongoDB
91-
instance, you may choose to perform the procedure as a different
92-
user.
93-
9487
.. include:: /includes/steps/run-mongodb-on-linux-tarball.rst

source/tutorial/install-mongodb-on-ubuntu-tarball.txt

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -114,11 +114,4 @@ Configuration
114114
either the command-line options or a :ref:`configuration file
115115
<conf-file>`.
116116

117-
.. note::
118-
119-
Although the following procedure uses ``sudo`` to start the MongoDB
120-
instance as well as to create the directories used by the MongoDB
121-
instance, you may choose to perform the procedure as a different
122-
user.
123-
124117
.. include:: /includes/steps/run-mongodb-on-linux-tarball.rst

0 commit comments

Comments
 (0)