download mongodb in mac code example
Example 1: install mongodb on mac
brew services start [email protected]
#Step 3 to run as a service
Example 2: install mongodb on mac
brew install [email protected]
#Step 2
Example 3: brew mongo start
brew services start [email protected]
Example 4: start mongodb server mac
mongod --config /usr/local/etc/mongod.conf --fork