gpt4 book ai didi

MongoDB:mongorestore:找不到命令

转载 作者:IT老高 更新时间:2023-10-28 13:12:49 25 4
gpt4 key购买 nike

我已经开始了 M101 MongoDB 在线类(class)。我只是关注 this video到视频的 1:45 分钟。

restoremongo 调用返回 mongorestore: command not found。这应该连接到服务器(我可以连接到并在我的机器上运行)。

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

tar xvf hw1-1.957cdceb1c1e.tar 
x dump/
x dump/m101/
x dump/m101/funnynumbers.bson
x dump/m101/funnynumbers.metadata.json
x dump/m101/hw1.bson
x dump/m101/hw1.metadata.json
Geralds-MacBook-Pro:Downloads geraldnolan$ mongorestore
-bash: mongorestore: command not found

服务器:

bsondump    mongodump   mongoimport mongorestore    mongostat
mongo mongoexport mongooplog mongos mongotop
mongod mongofiles mongoperf mongosniff
Geralds-MacBook-Pro:bin geraldnolan$ ./mongod
./mongod --help for help and startup options
Tue Jun 11 10:30:06.413 [initandlisten] MongoDB starting : pid=15803 port=27017 dbpath=/data/db/ 64-bit host=Geralds-MacBook-Pro.local
Tue Jun 11 10:30:06.414 [initandlisten]
Tue Jun 11 10:30:06.414 [initandlisten] ** WARNING: soft rlimits too low. Number of files is 256, should be at least 1000
Tue Jun 11 10:30:06.414 [initandlisten] db version v2.4.4
Tue Jun 11 10:30:06.414 [initandlisten] git version: 4ec1fb96702c9d4c57b1e06dd34eb73a16e407d2
Tue Jun 11 10:30:06.414 [initandlisten] build info: Darwin bs-osx-106-x86-64-2.10gen.cc 10.8.0 Darwin Kernel Version 10.8.0: Tue Jun 7 16:32:41 PDT 2011; root:xnu-1504.15.3~1/RELEASE_X86_64 x86_64 BOOST_LIB_VERSION=1_49
Tue Jun 11 10:30:06.414 [initandlisten] allocator: system
Tue Jun 11 10:30:06.414 [initandlisten] options: {}
Tue Jun 11 10:30:06.415 [initandlisten] journal dir=/data/db/journal
Tue Jun 11 10:30:06.415 [initandlisten] recover : no journal files present, no recovery needed
Tue Jun 11 10:30:06.461 [websvr] admin web console waiting for connections on port 28017
Tue Jun 11 10:30:06.461 [initandlisten] waiting for connections on port 27017

最佳答案

如果你使用Macports安装了mongo,还需要安装mongo-tools来获取mongodumpmongorestore

关于MongoDB:mongorestore:找不到命令,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/17041337/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com