The MongoDB database service is unable to start the solution (same applies to MongoDB Vue's card dead)

Source: Internet
Author: User

When you use MongoDB, you find that you can't even keep up with the server. When using MongoDB vue to connect to the database, the error is as follows:

Refer to Csdn: http://blog.csdn.net/yuebinghaoyuan/article/details/12068975

[HTML]View PlainCopyprint?
  1. Unable to connect to server 127.0.0.1:27017: Unable to connect because the target machine is actively rejecting. 127.0.0.1:27017.
  2. Type:MongoDB.Driver.MongoConnectionException
  3. Stack:at MongoDB.Driver.Internal.DirectConnector.Connect (TimeSpan timeout)
  4. At MongoDB.Driver.MongoServer.Connect (TimeSpan timeout, connectwaitfor waitFor)
  5. At MongoDB.Driver.MongoServer.Connect (TimeSpan timeout)
  6. At MongoDB.Driver.MongoServer.Connect ()
  7. At MangoUI.MMongo.FQlxNlJKqO74gYmXgZR4 (Object)
  8. At MangoUI.MMongo.Open (Boolean usesamus)
  9. At MangoUI.MMongo.Open ()
  10. At MangoUI.ComNavTree.wJQdUqApCpjoC39P59n (Object)
  11. At MangoUI.ComNavTree.ExpandMe (Mtreenode expand)
  12. At MangoUI.ComNavTree.tree_BeforeExpand (Object sender, TreeViewCancelEventArgs e)

First: If the query has been turned on, the MongoDB service is turned on in Task manager because it was set up and started with the Windows service startup. It started, but it still doesn't work.

To restart the service, the results are as follows:

Symptom Description: There is a problem with the service.

Re-access server address: http://127.0.0.1:28017/, if not accessible, the service does not actually start.

Depending on the error log, you can determine why this problem occurs:

The general reason is that MongoDB stops illegally.

To resolve this problem scenario:

In the MongoDB installation directory, there is a. lock file, delete this file.

Discover MongoDB Normal Startup:

The MongoDB database service is unable to start the solution (same applies to MongoDB Vue's card dead)

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.