我在运行的时候出现了这样的错误:不能连接到服务
:\mongodb\mongodb-win32-i386-2.4.4\bin>mongo
mongoDB shell version: 2.4.4
connecting to: test
at Jun 08 09:01:36.048 JavaScript execution failed: Error: couldn't connect to
server 127.0.0.1:27017 at src/mongo/shell/mongo.js:L112
exception: connect failed
可能是上次没有正常关机,mongod 的 lock 文件还在的话,将其删除看是否有效。若无效,则进行下列操作:
进系统服务界面开启服务。