首页 > 数据库技术 > 详细

Mac下安装 MongoDB

时间:2018-08-09 15:27:18      阅读:308      评论:0      收藏:0      [点我收藏+]
 

2018年更新:

更为简单的方法:

通过 homebrew 安装:brew install mongodb

如果报错:

 
mongodb: A full installation of Xcode.app 8.3.2 is required to compile this software.
Installing just the Command Line Tools is not sufficient.
Xcode can be installed from the App Store.
Error: An unsatisfied requirement failed this build.

 

说明Xcode版本过低,需要更新,如果你不想更新,可以通过使用命令:

 homebrew search mongodb

查看更低版本的MongoDB,然后安装更低版本的MongoDB。

 brew install mongodb@3.4

启动MongoDB服务:

 brew services start mongodb@3.4

关闭MongoDB服务:

 brew services stop mongodb@3.4

进入MongoDB图形化界面:

 mongo

查看homebrew安装的服务情况:

 brew services list

 

 

Mac下安装 MongoDB

原文:https://www.cnblogs.com/piwefei/p/9449143.html

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