MongoDB Error on window: No connection could be made

Source: Internet
Author: User

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

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.