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
151
151
152
152
.. code-block:: sh
153
153
154
- restorecon -R -v </some/MongoDB/directory>
154
+ sudo restorecon -R -v </some/MongoDB/directory>
155
155
156
156
For example:
157
157
@@ -166,7 +166,7 @@ Using a Custom MongoDB Directory Path
166
166
167
167
sudo semanage fcontext -a -t mongod_var_lib_t '/mongodb/data.*'
168
168
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'
170
170
171
171
- If using a non-default MongoDB log directory of ` ` /mongodb/log` `
172
172
(e.g. if the log file path is ` ` /mongodb/log/mongod.log` ` ):
@@ -175,7 +175,7 @@ Using a Custom MongoDB Directory Path
175
175
176
176
sudo semanage fcontext -a -t mongod_log_t '/mongodb/log.*'
177
177
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'
179
179
180
180
181
181
Using a Custom MongoDB Port
You can’t perform that action at this time.
0 commit comments