run MongoDB manually as a background process macos code example Example: run MongoDB manually as a background process macos mongod --config /usr/local/etc/mongod.conf --fork