继续浏览精彩内容
慕课网APP
程序员的梦工厂
打开
继续
感谢您的支持,我会继续努力的
赞赏金额会直接到老师账户
将二维码发送给自己后长按识别
微信支付
支付宝支付

Mac 上安装MongoDB服务

慕运维2858188
关注TA
已关注
手记 123
粉丝 63
获赞 512
安装
brew install mongodb
安装提示
Downloading https://homebrew.bintray.com/bottles/mongodb-3.0.6.yosemite.bottle.tar.gz Already downloaded: 
    /Library/Caches/Homebrew/mongodb-3.0.6.yosemite.bottle.tar.gz ==> Pouring mongodb-3.0.6.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.0.6: 17 files, 159M
启动MongoDB
mongod --config /usr/local/etc/mongod.conf
配置相关
**systemLog://log 目录 
   destination: file
path: /usr/local/var/log/mongodb/mongo.log logAppend: true
   storage://db目录 
     dbPath: /usr/local/var/mongodb net://网络地址 bindIp: 127.0.0.1
使用MongoDB
mongo
打开App,阅读手记
1人推荐
发表评论
随时随地看视频慕课网APP