start mongodb server mac brew code example
Example 1: install mongodb on mac
brew install mongodb-community@4.2
#Step 2
Example 2: start mongodb server mac
mongod --config /usr/local/etc/mongod.conf --fork
brew install mongodb-community@4.2
#Step 2
mongod --config /usr/local/etc/mongod.conf --fork