brew tap mongodb/brew brew install mongodb-community@4.2 brew services start mongodb-community@4.2 brew services stop mongodb-community@4.2