MacOS:
I try to get MongoDB running... when I type in mongod
this is happening:
exception in initAndListen: 98 Unable to create/open lock file:
/data/db/mongod.lock errno:13 Permission denied
is this enough to determine what's wrong? Or should I post the whole error message ?
So I have the solution:
I went to the terminal and run chmod 777 /data/db
.
Now mongod
works and mongo
works as well.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.