mac环境安装mongoDB

2018-11-01  本文已影响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

上一篇 下一篇

猜你喜欢

热点阅读