[参考]
$ brew update
$ brew install mongodb
mongod --config /usr/local/etc/mongod.conf
RoboMongoDB (MongoDB可视化工具)
错误一:
AppledeMacBook-Pro:~ apple$ brew install mongodbError: 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
网友评论