美文网首页
mac环境安装mongoDB

mac环境安装mongoDB

作者: 复古先生 | 来源:发表于2018-11-01 14:46 被阅读0次

[参考]
$ brew update
$ brew install mongodb
mongod --config /usr/local/etc/mongod.conf

MongoDB语法(对比SQL)

RoboMongoDB (MongoDB可视化工具)

错误一:
AppledeMacBook-Pro:~ apple$ brew install mongodb

Error: The following directories are not writable by your user:

/usr/local/share/man/man7

You should change the ownership of these directories to your user.

  sudo chown -R $(whoami) /usr/local/share/man/man7

解决一:

当我们用Homebrew安装应用时,会出现此问题,显示Homebrew无法访问这些位置并添加在OS X上为您安装软件所需的文件对于上面问题,我们应尝试回收权限
解决方案如下:首先打开终端,然后输入:
 sudo chown -R $(whoami) /usr/local/share/man/man7

错误二:

mac 下mongodb connect failed 连接错误

解决一:

在bash 输入brew services start mongodb

相关文章

网友评论

      本文标题:mac环境安装mongoDB

      本文链接:https://www.haomeiwen.com/subject/rtlxxqtx.html