File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -41,7 +41,7 @@ Using a Custom MongoDB Directory Path
41
41
42
42
.. code-block :: bash
43
43
44
- restorecon -R -v < /some/MongoDB/directory>
44
+ sudo restorecon -R -v < /some/MongoDB/directory>
45
45
46
46
For example:
47
47
@@ -56,7 +56,7 @@ For example:
56
56
57
57
sudo semanage fcontext -a -t mongod_var_lib_t ' /mongodb/data.*'
58
58
sudo chcon -Rv -u system_u -t mongod_var_lib_t ' /mongodb/data'
59
- restorecon -R -v ' /mongodb/data'
59
+ sudo restorecon -R -v ' /mongodb/data'
60
60
61
61
- If using a non-default MongoDB log directory of ``/mongodb/log ``
62
62
(e.g. if the log file path is ``/mongodb/log/mongod.log ``):
@@ -65,7 +65,7 @@ For example:
65
65
66
66
sudo semanage fcontext -a -t mongod_log_t ' /mongodb/log.*'
67
67
sudo chcon -Rv -u system_u -t mongod_log_t ' /mongodb/log'
68
- restorecon -R -v ' /mongodb/log'
68
+ sudo restorecon -R -v ' /mongodb/log'
69
69
70
70
71
71
Using a Custom MongoDB Port
You can’t perform that action at this time.
0 commit comments