mongodb shell homebrew code example
Example 1: install mongodb on mac
brew tap mongodb/brew
#step 1
Example 2: start mongodb server mac
mongod --config /usr/local/etc/mongod.conf --fork
brew tap mongodb/brew
#step 1
mongod --config /usr/local/etc/mongod.conf --fork