您的位置:首页 > 数据库 > Mongodb

python爬虫——安装mongodb时遇到的问题

2018-02-08 13:40 555 查看
操作系统:MacOS
之前装过homebrew(注1)。打开terminal,输入“brew”,报错如下:“Error:Failure while executing: git config --local --replace-all homebrew.private true”。
依次尝试了以下步骤: brew update:更新brew doctor: 诊断brew gist-logs <formula> ( <formula> is the name of the formula thatfailed)问题没有解决。
选择重装homebrew。命令如下:(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)问题解决。 下一步,安装mongodb,命令行如下:brew install mongodb

注1:Homebrew是Mac OS上的软件包管理工具,能在Mac中方便的安装软件或者卸载软件,相当于linux下的apt-get、yum神器;Homebre可以在Mac上安装一些OS X没有的UNIX工具,Homebrew将这些工具统统安装到了 /usr/local/Cellar 目录中,并在 /usr/local/bin 中创建符号链接。

关于安装Homebrew,这里有一篇教程,链接如下https://www.jianshu.com/p/4e80b42823d5
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签:  python MacOS mongodb