我按照官方指南安装mongodb,但多次尝试失败。 首先,我尝试使用brew install mongodb。
brew --version
Homebrew 1.4.3
brew install mongodb
错误:
Error: Permission denied @ rb_sysopen - /usr/local/var/homebrew/locks/scons.formula.lock
我尝试使用sudo
sudo brew install mongodb
错误:
Error: Running Homebrew as root is extremely dangerous and no longer supported.
As Homebrew does not drop privileges on installation you would be giving all
build scripts full access to your system.
我仍在尝试通过tar命令下载并提取二进制文件,但这更加复杂,我还遇到了许多其他问题。因此,我希望首先解决这个问题...有任何想法吗?非常感谢。