问题
I have seen the Quickstart Windows and downloaded mongodb-win32-i386-2.0.4.zip and this error appears when I run mongo.exe:
Error: couldn't connect to server 127.0.0.1 shell/mongo.js:84
exception: connect failed
What should I do? Do I need to download something else?
回答1:
mongo.exe
is the Mongo Shell, which will attempt to connect to the server at localhost:27017
unless you explicitly specify another server and port.
The one you're after is mongod.exe
(notice the 'd'?), which is the MongoDB Server.
回答2:
I think maybe you did not start your Mongo DB server.
来源:https://stackoverflow.com/questions/10343067/mongodb-error-with-c-sharp