为什么我不能使用Homebrew更新到最新的MongoDB? [英] Why can't I update to the latest MongoDB with Homebrew?

查看:59
本文介绍了为什么我不能使用Homebrew更新到最新的MongoDB?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在Mac上安装了mongo 2.0.2版,该软件是使用Homebrew安装的.我正在学习的课程是使用聚合"功能,该功能仅在Mongo 2.2版中可用.我试图做

I have version 2.0.2 of mongo installed on my mac, which I installed using Homebrew. The course I'm taking is using the 'aggregate' function, which is only available in version 2.2 of Mongo. I tried to do

 brew upgrade mongodb

我得到

Error: mongodb already upgraded

是否可以通过Homebrew安装最新版本的Mongo?

Is there a way to install the latest version of Mongo with Homebrew?

推荐答案

此命令应将您的自制公式更新为最新版本:

This command should update your homebrew formulae to their latest version:

brew update

然后:

brew upgrade mongodb

要安装最新版本的mongodb.

To install the latest version of mongodb.

这篇关于为什么我不能使用Homebrew更新到最新的MongoDB?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆