3
Mac 安装和配置Mongodb
source link: https://v3u.cn/a_id_51
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
Mac 安装和配置Mongodb
首页 - Mac & Linux/2019-03-17
在mac下安装Mongodb同样不推荐编译安装,推荐使用Home brew
1 升级brew
brew update
2 安装mongo 这里需要注意一点,brew的mongo安装依赖python2.7,所以默认的python环境变量最好不要动,如果想用python3.7.2 最好使用python3的软连接
brew install mongodb
3 安装成功后,可以使用两种方式启动mongo服务
brew services start mongodb
mongod --config /usr/local/etc/mongod.conf
4 使用brew 默认下载地址为 /usr/local/Cellar/ 下的 mongodb文件夹
至此,安装和配置mongo就大功告成,比编译安装要节省很多时间。
Recommend
About Joyk
Aggregate valuable and interesting links.
Joyk means Joy of geeK