7 Likes
I had a problem starting mongod and I would like to share how I solved it.
If /data/db does not exist you will need to add it and give yourself permission to write to it:
sudo mkdir -p /data/db
sudo chmod a+w /data/db