I am using macos Mojave 10.14.5 on a Macbook Air 2017. I have installed mongodb-community version using terminal by running the commands,
brew tap mongodb/brew
brew install mongodb-community
after that I also made the default folder using,
sudo mkdir -p /data/db
and I changed the ownership as,
sudo chown -Rv dhruvbansal /data/db
Then I ran the command mongod in the terminal but it is not starting the mongo-daemon shell. The screenshot is attached here.