MongoDB installation and configuration - windows10

1. Enter the official website and click to enter the community

Insert picture description here

2. Enter the download page

Insert picture description here

3. Select the version and system you need here, and click to download. If you need to register and log in during the period, you can ignore it or just fill in it. Choosing zip here means that everything except the software will be downloaded. You can choose to download only the msi package.Insert picture description here

What is downloaded is a package.
Insert picture description here

5. Installation process

Insert picture description here
Insert picture description hereInsert picture description here
Insert picture description hereInsert picture description hereInsert picture description hereInsert picture description here
To put it bluntly, unless you need to modify the installation directory, you can always click next

6. Environmental variables.

F:\Program Files\MongoDB\Server\4.2\bin This is the directory I just installed.

7. Configure environment variables

Insert picture description hereConfigure the bin directory of the installation directory in step 6 to the user's path

8. Open the system service and check if there is MongoDB service

Insert picture description here

9. Open cmd and enter mongo. If the content in the figure appears, the installation is successfulInsert picture description here
10. Enter the address localhost(127.0.0.1):27017 in the browser and the content in the picture appearsInsert picture description here

So far, mongodb has been successfully installed for this purpose.
If you need to change the port mongod --dapath F: \data\db --port port

Guess you like

Origin blog.csdn.net/JISOOLUO/article/details/103497918