Common exceptions for Mongo db under Windows

Source: Internet
Author: User

Startup class:

1. Startup failed with the following information:

Connecting To:test -- A-06t05: the:39.064+0000W NETWORK Failed to connect to127.0.0.1:27017, Reason:errno:10061No connection could is made because the target machine actively refused it. -- A-06t05: the:39.067+0000E QUERY ERROR:COULDN't connect to server 127.0.0.1:27017(127.0.0.1), connection attempt failed at connect (src/mongo/shell/mongo.js:179: -) at (Connect):1:6At Src/mongo/shell/mongo.js:179Exception:connect failed

Solution:

1) mkdir C:\Data

2) CD C:\Data

3) Mongod-dbpath C:\Data

Reference:

Http://stackoverflow.com/questions/23726684/mongodb-on-a-windows-7-machine-no-connection-could-be-made

http://blog.csdn.net/xiebaochun/article/details/41864347

Common exceptions for Mongo db under Windows

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.