how to install mongodb on mac server stackoverflow code example Example: install mongodb mac stack overflow ~> brew tap mongodb/brew ~> brew install mongodb-community