[DOCS-6248] Comment on: "manual/tutorial/install-mongodb-on-linux.txt" Created: 21/Sep/15  Updated: 27/Jul/16  Resolved: 27/Jul/16

Status: Closed
Project: Documentation
Component/s: None
Affects Version/s: None
Fix Version/s: None

Type: Bug Priority: Major - P3
Reporter: Docs Collector User (Inactive) Assignee: Andrew Aldridge
Resolution: Won't Fix Votes: 0
Labels: collector-298ba4e7
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

CentOS 7

Location: http://docs.mongodb.org/master/tutorial/install-mongodb-on-linux/
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_10_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/45.0.2454.93 Safari/537.36
Referrer: https://www.google.com.br/
Screen Resolution: 1440 x 900
repo: docs
source: tutorial/install-mongodb-on-linux


Participants:
Days since reply: 7 years, 29 weeks ago

 Description   

In the "Run MongoDB" section, when you change the data directory, if you are running enforced SELinux, you also need to change the permissions of the security context for that new directory. Setting the owner and group alone is not enough.

You change it with:

sudo chcon -R -u system_u -t mongod_var_lib_t /data/db

Solution originally found in: http://stackoverflow.com/questions/15229412/unable-to-create-open-lock-file-data-mongod-lock-errno13-permission-denied/15982017#comment45464578_15982017



 Comments   
Comment by Kay Kim (Inactive) [ 27/Jul/16 ]

JIRA housekeeping.

Generated at Thu Feb 08 07:51:55 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.