我是mongodb的新手,在Windows上安装mongo安装程序包后,我尝试在shell和命令提示符下使用mongo时出现此错误。我找不到任何解决这个问题的方法:
C:\Program Files\MongoDB 2.6 Standard\bin>mongo
MongoDB shell version: 2.6.7
connecting to: test
2015-02-20T16:43:11.971+0330 warning: Failed to connect to 127.0.0.1:27017, reas
on: errno:10061 No connection could be made because the target machine actively refused it.
2015-02-20T16:43:11.987+0330 Error: couldn't connect to server 127.0.0.1:27017 (
127.0.0.1), connection attempt failed at src/mongo/shell/mongo.js:146
exception: connect failed
C:\Program Files\MongoDB 2.6 Standard\bin>