Installing MongoDB meets a path problem

Source: Internet
Author: User
Tags goto

If the installation path does not exist, the EXE software will not be unpacked!

After installing MONOGODB, it does not automatically add the execution path!

This means that the installation path is the MongoDB folder under the D drive, and if this folder does not exist, it will not be installed successfully.

You need to add a path:

You can use the following batch files to complete the Add path ( Run as Administrator , Save as . Bat or . cmd)

1 @echo off2 : Continue3 Echoenter exit to exit and take effect4 5 Set/P my_path=Enter the path that you want to permanently add to the PATH environment variable:6 if"%my_path%" = = "Exit"Goto End7 Set PATH=%PATH%;%my_path%8REG ADD "HKLM\SYSTEM\CurrentControlSet\Control\Session manager\environment"/V "Path"/t reg_expand_sz/d "%PATH%"/F9 GotoContinueTen : End Onetaskkill/f/im Explorer.exe &&StartExplorer.exe
View Code

Installing MongoDB meets a path problem

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.