command to install mongodb using brew in mac code example Example: start mongodb server mac mongod --config /usr/local/etc/mongod.conf --fork