MongoDB Common Error Resolution method

Source: Internet
Author: User

before today, after the installation of MongoDB, the start of the service this morning when the start of the failure, the following error:

Error:

Error 2: The system cannot find the specified file

Thinking Process:

Yesterday when the test, has installed two times MongoDB, and then I deleted (note is not uninstalled) a MongoDB folder, the current service is not the default MongoDB installation address error?

To view the properties of the service, the address of MONGO is the address that has been deleted, not the one currently used. The current address is: E:\Program files\mongodb\bin

How to resolve:

First uninstall the original installation, install the new again.

MONGO Uninstall:

Uninstall: Mongod.exe--remove--servicename "MongoDB"


MongoDB Installation as service:

installation: Mongod.exe--install--logpath= "E:\Program files\mongodb\data\log\log.txt" --dbpath= "E:\Program files \mongodb\data\db "


After installation refresh service, address changes:


Start MongoDB service again, boot failed with 1607 error.

Error:


Cause of error: unknown

How to resolve:

Delete the Mongod.lock file under the E:\Program files\mongodb\data\db directory.

Restart the service again to start successfully.


Summarize:

Contact with a new thing, it is inevitable that mistakes, mistakes come, solve, do not hide, dragged.








MongoDB Common Error Resolution method

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.