【问题标题】:mongorestore: command not found while runningmongorestore:运行时找不到命令
【发布时间】:2013-12-06 05:35:41
【问题描述】:

同样的情况: 我已经开始了 M101 MongoDB 在线课程。 restoremongo 调用返回 mongorestore: command not found。这应该连接到服务器(我可以连接到并在我的机器上运行)。我只是跟着这个视频(下面的链接)到视频的 1:45 分钟。 https://education.10gen.com/courses/10gen/M101J/2013_May/courseware/Week_1_-_Introduction/Homework_1.1/

这就是我所在的地方;请看下文。我已在此下方复制并粘贴了服务器信息。有什么解决办法吗?我将不胜感激。格里

tar xvf hw1-1.957cdceb1c1e.tar x转储/ x转储/m101/ x转储/m101/funnynumbers.bson x转储/m101/funnynumbers.metadata.json x转储/m101/hw1.bson x转储/m101/hw1.metadata.json Geralds-MacBook-Pro:下载 geraldnolan$ mongorestore -bash: mongorestore: 找不到命令

我将环境变量设置为 export PATH=$PATH:/Users/bluegenep/Downloads/mongodb-osx-x86_64-2.4.8/bin

而我mongodb所在的路径是“/Users/bluegenep/Downloads/mongodb-osx-x86_64-2.4.8/bin”

但我仍然遇到同样的错误!

-bash: mongorestore: 找不到命令

任何帮助将不胜感激!谢谢!!

【问题讨论】:

    标签: mongodb environment-variables mongorestore


    【解决方案1】:

    检查是否可以从 bin 目录中运行 mongorestore 应用程序,可能的错误是路径设置不正确,几个月前有一个关于完全相同的问题的类似问题。

    mongodb-mongorestore-command-not-found

    【讨论】:

      猜你喜欢
      • 2015-03-03
      • 2020-11-25
      • 2017-04-25
      • 2014-03-18
      • 2015-06-14
      • 1970-01-01
      • 1970-01-01
      • 2019-04-14
      • 2023-02-14
      相关资源
      最近更新 更多