Error while running mongo server
mongodb
Solution
Do you have journalling enabled? If not, and your mongod instance crashed, then you may need to perform a recovery. In this case, what you should do is
- start mongod with the repair switch: `mongod --repair`. It will run, and then terminate having deleted the lock file.
- start mongod again normally.
Once you do this, I highly recommend that you enable journalling by using the `--journal` command line switch when you start mongod.
Problem
I am totally a beginner with mac , I get this error while trying to open the server using mongod 10309 Unable to create/open lock file: /data/db/mongod.lock errno:13 Permission denied Is a mongod instance already running?, terminatin