Mongodb解决不能连接到服务器的错误
好几天没有用mongodb啦,今天一开,怎么也打不开,报如下错误: 2017-05-16T10:31:50.663+0800 I CONTROL Hotfix KB2731284 or later updateis not installed, will zero-out data files
MongoDB shell version: 3.2.12
connecting to: test
2017-05-16T10:31:55.753+0800 W NETWORK Failed to connect to 127.0.0.1
:27017 after 5000ms milliseconds, giving up.
2017-05-16T10:31:55.754+0800 E QUERY Error: couldn't connect to ser
ver 127.0.0.1:27017, connection attempt failed :
connect@src/mongo/shell/mongo.js:229:14
@(connect):1:6
exception: connect failed
这是因为上次关闭Mongodb不当,数据文件还继续占用,
以下是网上的解决方法,
Mongodb解决不能连接到服务器的错误
页:
[1]