1. 1. 一.安装homebrew(如果已装,忽略)
    1. 1.1. Install the Latest Development Release of MongoDB
    2. 1.2. build MongoDB from the source files and include SSL support
Table of Contents ▼

mac 安装mongodb

一.安装homebrew(如果已装,忽略)

ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
brew官网:[http://brew.sh/](http://brew.sh/ "brew官网") ## 二.安装mongodb 1.Update Homebrew’s package database. In a system shell, issue the following command:
brew update
2.多种安装方式: ### install the MongoDB binaries
brew install mongodb

Install the Latest Development Release of MongoDB

brew install mongodb --devel

build MongoDB from the source files and include SSL support

brew install mongodb --with-openssl