Error installing mongodb under mac

  mongodb, question

图片描述

Installed with Homebrew, created

bashmkdir -p /data/db

Then run

bashSudochwn-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.lockPermission for
  • Is a mongod instance already running?