MongoDB链接失败o/shell/mongo.js:240:13 @(connect):1:6
来源:互联网 发布:淘宝怎么装修店铺首页 编辑:程序博客网 时间:2024/06/05 16:01
小谢博客https://xgs888.top/post/view?id=80
I:\MongoDB\bin>mongoMongoDB shell version v3.4.10-58-g9847179connecting to: mongodb://127.0.0.1:270172017-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 server 127.0.0.1:27017, connection attempt failed :connect@src/mongo/shell/mongo.js:240:13@(connect):1:6exception: connect failed
Windows下安装的MongoDB之前还在用突然间连不上了,
不知道怎么就任务给关闭了;启动一下MongoDB就可以了
net start MongoDB
阅读全文