Mac安装mongodb

 

1、使用Homebrew安装MongoDB

brew install mongodb

 

2、MongoDB启动方式

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

 

posted @ 2019-01-24 18:08  追赶菜鸟  阅读(147)  评论(0编辑  收藏  举报