首页 > 数据库技术 > 详细

mongodb的安装

时间:2019-12-26 10:22:14      阅读:76      评论:0      收藏:0      [点我收藏+]

mongodb 2019消息,不再开源,因此只能安装社区版本

brew tap mongodb/brew
brew install mongodb-community

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

配置文件

/usr/local/etc/mongod.conf

启动服务端

brew services start mongodb/brew/mongodb-community
mongod --config /usr/local/etc/mongod.conf

启动客户端

mongo

常见命令:
show dbs;
use admin;
关闭服务
db.shutdownServer();

参考

https://github.com/mongodb/homebrew-brew
https://juejin.im/post/5d9d7ad66fb9a04e373163c3
https://www.runoob.com/mongodb/mongodb-osx-install.html

mongodb的安装

原文:https://www.cnblogs.com/shengulong/p/12100428.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!