Installed with Homebrew, created
bash
mkdir -p /data/db
Then run
bash
Sudochwn-r current login username /data
Add permissions to /data/db, but it doesn’t seem to add them. I don’t know what’s the problem.
- Check
/data/db/mongod.lock
Permission forIs a mongod instance already running?