Saturday, October 10, 2015

Unable to create/open lock file: /data/db/mongod.lock errno:13 Permission denied Is a mongod instance already running?, terminating

 [initandlisten] exception in initAndListen: 98 Unable to create/open lock file: /data/db/mongod.lock errno:13 Permission denied Is a mongod instance already running?, terminating


Got this issue in mac


Mongoldb instance is running in the system.


Stop the server

$mongo admin --eval "db.shutdownServer()"