一、安装
采用homebrew安装方式,首先:
brew update
然后:
brew install mongodb
安装提示代码:
yaopans-MacBook-Pro:~ yaopan$ brew install mongodb
==> Downloading https://homebrew.bintray.com/bottles/mongodb-3.2.3.yosemite.bott
Already downloaded: /Library/Caches/Homebrew/mongodb-3.2.3.yosemite.bottle.tar.gz
==> Pouring mongodb-3.2.3.yosemite.bottle.tar.gz
==> Caveats
To have launchd start mongodb at login:
ln -sfv /usr/local/opt/mongodb/*.plist ~/Library/LaunchAgents
Then to load mongodb now:
launchctl load ~/Library/LaunchAgents/homebrew.mxcl.mongodb.plist
Or, if you don't want/need launchctl, you can just run:
mongod --config /usr/local/etc/mongod.conf
==> Summary
�� /usr/local/Cellar/mongodb/3.2.3: 17 files, 208.7M
如果需要卸载:
brew uninstall mongodb
二、启动
安装的提示代码有启动命令:
$ mongod --config /usr/local/etc/mongod.conf
进入到数据库:
$ mongo
三、可视化工具
MongoDB官网给出的可视化工具列表:可视化工具列表。