Javascript 安装MongoDB时出错

Javascript 安装MongoDB时出错,javascript,mongodb,Javascript,Mongodb,在过去的一周里,我一直试图让MongoDB在我的Mac电脑上运行,但在我的工作电脑和家用电脑上都没有成功 这是我在工作电脑上得到的信息: You should install the latest version from: http://connect.apple.com ==> Downloading http://fastdl.mongodb.org/osx/mongodb-osx-x86_64-2.4.5.tgz ##########################

在过去的一周里,我一直试图让MongoDB在我的Mac电脑上运行,但在我的工作电脑和家用电脑上都没有成功

这是我在工作电脑上得到的信息:

You should install the latest version from: http://connect.apple.com
    ==> Downloading http://fastdl.mongodb.org/osx/mongodb-osx-x86_64-2.4.5.tgz
    ######################################################################## 100.0%
==> Caveats
To have launchd start mongodb at login:
    ln -sfv /usr/local/opt/mongodb/*.plist ~/Library/LaunchAgents
Then to load mongodb now:
    launchctl load ~/Library/LaunchAgents/homebrew.mxcl.mongodb.plist
Or, if you don't want/need launchctl, you can just run:
    mongod
==> Summary
In Mac OS X I'll recommend installing mongodb using Homebrew. 

Then you can install mongodb with:

$ brew install mongodb
您应该从以下位置安装最新版本:http://connect.apple.com
==>下载http://fastdl.mongodb.org/osx/mongodb-osx-x86_64-2.4.5.tgz
######################################################################## 100.0%
==>注意事项
要在登录时启动mongodb,请执行以下操作:
ln-sfv/usr/local/opt/mongodb/*.plist~/Library/LaunchAgents
然后立即加载mongodb:
launchctl load~/Library/LaunchAgents/homebew.mxcl.mongodb.plist
或者,如果您不想/不需要launchctl,您可以运行:
蒙哥德
==>摘要

在MacOSX中,我建议使用安装mongodb

然后,您可以通过以下方式安装mongodb:

$ brew services start mongodb
并通过以下方式直接通过自制软件管理服务:


是否执行了符号链接?是否使用
sudo
运行它?是否确认/usr/local/var/log/mongodb/存在,以及是否具有写入权限?