mac mongo shell update code example
Example 1: brew mongo start
brew services start mongodb-community@4.4
Example 2: run MongoDB manually as a background process macos
mongod --config /usr/local/etc/mongod.conf --fork
brew services start mongodb-community@4.4
mongod --config /usr/local/etc/mongod.conf --fork