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 @@ -151,7 +151,7 @@ Using a Custom MongoDB Directory Path
151151
152152 .. code-block:: sh
153153
154- restorecon -R -v </some/MongoDB/directory>
154+ sudo restorecon -R -v </some/MongoDB/directory>
155155
156156 For example:
157157
@@ -166,7 +166,7 @@ Using a Custom MongoDB Directory Path
166166
167167 sudo semanage fcontext -a -t mongod_var_lib_t '/mongodb/data.*'
168168 sudo chcon -Rv -u system_u -t mongod_var_lib_t '/mongodb/data'
169- restorecon -R -v '/mongodb/data'
169+ sudo restorecon -R -v '/mongodb/data'
170170
171171 - If using a non-default MongoDB log directory of ` ` /mongodb/log` `
172172 (e.g. if the log file path is ` ` /mongodb/log/mongod.log` ` ):
@@ -175,7 +175,7 @@ Using a Custom MongoDB Directory Path
175175
176176 sudo semanage fcontext -a -t mongod_log_t '/mongodb/log.*'
177177 sudo chcon -Rv -u system_u -t mongod_log_t '/mongodb/log'
178- restorecon -R -v '/mongodb/log'
178+ sudo restorecon -R -v '/mongodb/log'
179179
180180
181181Using a Custom MongoDB Port
You can’t perform that action at this time.
0 commit comments