1. Visit the MongoDB Download Center, https://www.mongodb.com/download-center#enterprise, select OS X x64 system, click Download, may appear a page let you fill in the contact information and so on
2. After the download is a mongodb-osx-x86_64-enterprise-3.6.2.tgz compressed file, unzip it, and put the extracted folder in the ~/directory
3. Open terminal, enter the command to add the MongoDB shell to the PATH variable
Export path="/users/shiming/mongodb-osx-x86_64-enterprise-3.6.2/bin: $PATH" # Add PATH variable
SOURCE ~/.bash_profile # makes path update effective immediately
4. Verifying the installation
CD mongodb-osx-x86_64-enterprise-3.6. 2/ --nodb # start MONGO db with NODB option,--nodb means not to specify DB address when starting MongoDB
Command line returns the version of the MongoDB shell
MongoDB Shell version v3. 6.2
Installation of Mac under MongoDB Enterprise Edition