Appearance
1、安装brew
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
2、更新brew
brew update
3、安装MongoDB
$ brew install mongodb
4、启动MongoDb(安装成功后命令行有提示
$ mongod --config /usr/local/etc/mongod.conf
5、连接到mongo
$ mongo