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