解决mongodb连接失败问题

错误提示:

MongoDB shell version: 2.4.9
connecting to: test
Mon Mar  3 23:45:09.491 Error: couldn't connect to server 127.0.0.1:27017 at src/mongo/shell/mongo.js:145
exception: connect failed


解决方法:

删除mongodb\data\db\文件下面的mongo.lock文件 

重启服务

OK

你可能感兴趣的:(mongodb)