# install mongodb-community using homebrew
$ brew tap mongodb/brew
$ brew install mongodb-community
# back up default config file
$ cp /usr/local/etc/mongod.conf{,.bak}
# to start the service at system startup
$ brew services start mongodb-community
Having used macOS/OS X for several years, I have come to realize that sometimes command line (cli) access for system preferences can be vital or life-saving when running into problems with macOS' system functionalities. Additionally, macOS also comes with a bunch of useful functionalities only accessible via command line (some of them require installation via xcode-select --install
).
Sadly, many of these exist without having been updated for years and their documentations have been moved to Apple's Document Archive website. It is really disappointing that Apple seems to be no longer advocating command line operations for users of Macintosh.
Anyway, the following is an incomplete quick index of corresponding cli commands I have discovered for managing several macOS configurations/services. Most of these commands reside under /usr/bin
or /usr/local/bin
.
References:
man
pages of corresponding commands from either a macOS distribution or [Ap