brew tap mongodb/brew brew update brew install mongodb-community@7.0 mongod --config /opt/homebrew/etc/mongod.config mongsh