我是Python的新手并安装了MongoDB,但每次尝试从命令提示符C:\Program Files\MongoDB 2.6 Standard\bin>mongo.exe
运行mongo.exe时,都会发出以下内容:
MongoDB shell version: 2.6.3
connecting to: test
2014-07-15T10:02:02.670+0100 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.
2014-07-15T10:02:02.672+0100 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
我该如何解决这个问题?谢谢。
答案 0 :(得分:0)
您需要确保首先在另一个终端标签中运行mongod
。