Install MongoDB startup times error ' occurred system errors 2 ' workaround

Source: Internet
Author: User
Tags install mongodb

Install database MongoDB startup times "System error 2 occurred."

The problem is that if you've already installed it once, and two times the installation directory is different, you'll definitely encounter it, because the path you installed earlier has been generated in the registry and has not been purged with your uninstallation.
If you do it again, it's not going to work, and it's definitely the problem that the service doesn't start up. Don't believe you can run command services.msc, or directly on my computer or computer right-click into the service, you can see the path of the executable file in the General column is definitely not the path you installed this time, is the first time you install the file path.
You can try the SC command, but my test is not very successful, so simply modify the registry directly.
To enter the registry through Regedit, we first find the HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services, and then find the name of the program we want to install, such as my is MongoDB, There is a imagepath on the right, click to open the change. Modify to the current installation path

Install MongoDB startup times error ' occurred system errors 2 ' workaround

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.