使用mongodump:"mongodump:未找到命令"; [英] Using mongodump: "mongodump: command not found"

查看:3962
本文介绍了使用mongodump:"mongodump:未找到命令";的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试获取本地数据库的转储,看来我应该使用:

I'm trying to get a dump of my local database and it seems I should be using:

mongodump --host localhost:3002

但是,终端然后告诉我:

However, the terminal then tells me:

-bash: mongodump: command not found

我错过了什么吗?还是以错误的方式进行操作?我正在从终端在Mac上使用它.

Am I missing something? Or going about this the wrong way? I'm using it on Mac from the terminal.

我使用以下命令安装了mongo(我认为):

I installed mongo (I think) using the following commands:

curl http://downloads.mongodb.org/osx/mongodb-osx-x86_64-2.4.5.tgz > mongodb.tgz

tar -zxvf mongodb.tgz

推荐答案

注意:此答案已过时.不再有这种叫做mongo的啤酒.

brew install mongo

还将安装mongodump.

如果没有brew命令,则应该考虑安装自制软件

If you don't have the brew command, you really should consider install Homebrew

这篇关于使用mongodump:"mongodump:未找到命令";的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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