【问题标题】:Mongorestore command not found with meteor用流星找不到 Mongorestore 命令
【发布时间】:2015-03-03 19:31:50
【问题描述】:

好的,伙计们,我收到了一堆 mongodb.bson.json)的文件,我想替换我当前的 meteor mongodb,我已经阅读了所有关于它的帖子:

当流星应用程序运行时,我在终端中结束写作

mongorestore -h 127.0.0.1:3001 --port 3001 -d meteor ~/Github/mongo/mongoDBRESTORE/admin/

但问题在于终端输出是not command found

有谁知道我做错了什么,正确的方法是什么?

【问题讨论】:

  • 您的机器上是否安装了与 Meteor 分开的 mongo 2.6? mongorestore 来自 Mongo 的二进制文件,可能未与 Meteor 捆绑。
  • mmmmm 是的,我认为这就是我结束类似~/mongodb/bin/mongorestore -h 127.0.0.1:3001 -db meteor ~/Github/mongo/mongoDBRESTORE/admin 的事情的原因
  • 你必须安装mongo工具apt-get install mongo-tools才能运行mongorestore

标签: mongodb meteor


【解决方案1】:

正如@rgoomar 在 cmets 中指出的那样,我需要下载 https://www.mongodb.org/downloads mongodb bin 文件然后我简单 执行 ~/mongodb/bin/mongorestore -h 127.0.0.1:3001 -db meteor ~/Github/mongo/mongoDBRESTORE/admin

并且工作了!

【讨论】:

    猜你喜欢
    • 2020-11-25
    • 1970-01-01
    • 1970-01-01
    • 2015-05-20
    • 1970-01-01
    • 2014-09-21
    • 1970-01-01
    • 1970-01-01
    • 2016-12-30
    相关资源
    最近更新 更多