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
4141
4242 .. code-block :: bash
4343
44- restorecon -R -v < /some/MongoDB/directory>
44+ sudo restorecon -R -v < /some/MongoDB/directory>
4545
4646 For example:
4747
@@ -56,7 +56,7 @@ For example:
5656
5757 sudo semanage fcontext -a -t mongod_var_lib_t ' /mongodb/data.*'
5858 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'
6060
6161 - If using a non-default MongoDB log directory of ``/mongodb/log ``
6262 (e.g. if the log file path is ``/mongodb/log/mongod.log ``):
@@ -65,7 +65,7 @@ For example:
6565
6666 sudo semanage fcontext -a -t mongod_log_t ' /mongodb/log.*'
6767 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'
6969
7070
7171 Using a Custom MongoDB Port
You can’t perform that action at this time.
0 commit comments