homebrew add mongodb to path code example
Example 1: brew install mongodb
brew tap mongodb/brew
Example 2: start mongodb server mac
mongod --config /usr/local/etc/mongod.conf --fork
brew tap mongodb/brew
mongod --config /usr/local/etc/mongod.conf --fork