从零开始玩转大数据Mac优雅使用指南我爱编程

Mac OS安装mongodb

2016-11-28  本文已影响124人  繁著

1.使用Homebrew软件包管理工具安装

brew 又叫Homebrew,是Mac OSX上的软件包管理工具,能在Mac中方便的安装或者卸载软件,类似于ubuntu系统下的apt-get

To have launchd start mongodb now and restart at login:
brew services start mongodb
Or, if you don't want/need a background service you can just run:
mongod --config /usr/local/etc/mongod.conf

Successfully started mongodb (label: homebrew.mxcl.mongodb)

MongoDB shell version: 3.2.11
connecting to: test
Welcome to the MongoDB shell.
For interactive help, type "help".
For more comprehensive documentation, see
http://docs.mongodb.org/
Questions? Try the support group
http://groups.google.com/group/mongodb-user

上一篇下一篇

猜你喜欢

热点阅读