File tree Expand file tree Collapse file tree 1 file changed +21
-4
lines changed Expand file tree Collapse file tree 1 file changed +21
-4
lines changed Original file line number Diff line number Diff line change @@ -4,15 +4,32 @@ level: 4
4
4
ref : start-without-auth
5
5
pre : |
6
6
7
- Start a standalone :binary:`~bin.mongod` instance without access
8
- control.
9
-
10
- For example, open a terminal and issue the following:
7
+ Start a standalone :binary:`~bin.mongod` instance without access
8
+ control.
9
+
10
+ Open a terminal and run the following command as the ``mongod`` user :
11
11
12
12
action :
13
13
language : sh
14
14
code : |
15
15
mongod --port 27017 --dbpath /var/lib/mongodb
16
+ post : |
17
+ The :binary:`~bin.mongod` instance in this tutorial uses
18
+ :option:`port 27017 <mongod --port>` and the ``/var/lib/mongodb``
19
+ data directory.
20
+
21
+ The tutorial assumes that the ``/var/lib/mongodb`` directory exists
22
+ and is the default :setting:`~storage.dbPath`. You may specify a
23
+ different data directory or port as needed.
24
+
25
+ .. tip::
26
+
27
+ When :binary:`mongod` starts, it creates some system files in the
28
+ ``/var/lib/mongodb`` directory. To ensure the system files have
29
+ the correct ownership, follow this tutorial as the ``mongod``
30
+ user. If you start :binary:`mongod` as the ``root`` user you will
31
+ have to update file ownership later.
32
+
16
33
---
17
34
stepnum : 2
18
35
title : Connect to the instance.
You can’t perform that action at this time.
0 commit comments