无法使用mongodump命令进行mongodb转储

时间:2018-12-12 05:27:11

标签: mongodb dump

尝试服用mongodump时,出现以下错误

mongodump --host 127.0.0.1 --port 27017 --db csgdb
2018-12-12T05:16:39.928+0000    Failed: error connecting to db server: 
no reachable servers

即使无法登录mongo shell

mongo --port 27017
MongoDB shell version v3.4.7
connecting to: mongodb://127.0.0.1:27018/
2018-12-12T05:14:54.161+0000 E QUERY    [thread1] Error: network error 
while attempting to run command 'isMaster' on host '127.0.0.1:27018'  :
connect@src/mongo/shell/mongo.js:237:13
@(connect):1:6
exception: connect failed

有帮助吗?

0 个答案:

没有答案