enable mongodb service macos code example
Example: start service mongodb on mac
$ brew services list
Name Status User Plist
mongodb-community stopped
$ brew services start mongodb-community
==> Successfully started `mongodb-community` (label: homebrew.mxcl.mongodb-community)