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