原文地址 https://xiegaosheng.com/post/view?id=80
I:\MongoDB\bin>mongo
MongoDB shell version v3.4.10-58-g9847179
connecting to: mongodb://127.0.0.1:27017
2017-12-26T09:12:22.855+0800 W NETWORK [thread1] Failed to connect to 127.0.0.1
:27017 after 5000ms milliseconds, giving up.
2017-12-26T09:12:22.857+0800 E QUERY [thread1] Error: couldn't connect to ser
ver 127.0.0.1:27017, connection attempt failed :
connect@src/mongo/shell/mongo.js:240:13
@(connect):1:6
exception: connect failed
Windows下安装的MongoDB之前还在用突然间连不上了,
不知道怎么就任务给关闭了;启动一下MongoDB就可以了
net start MongoDB