Today in MU class network (very good one IT Technology free website) to learn Nodejs development film website, which used to the MONGO database, but in the execution encountered the following error!
Failed to connect to 127.0.0.1:27017, reason:errno:10061 No connection could being made because the target machine actively Refused it.
...
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 E Xception:connect failed
The solution was found in Http://stackoverflow.com/questions/23726684/mongodb-on-a-windows-7-machine-no-connection-could-be-made, as follows:
2down vote |
I got same error and fixed it by: 1) mkdir C:\Data 2) CD data 3) Mongod-dbpath. 4) Now in another command window I is able to connect from my client using "MONGO" command. |
Try it, use two command lines, one for the receive connection, and one for the send connection. The problem is solved, but still did not find the nature of the problem, if you know, please leave me a message, thank you.
MongoDB Error on window: No connection could be made