1. Enter the official website and click to enter the community
2. Enter the download page
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.
What is downloaded is a package.
5. Installation process
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
Configure 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
9. Open cmd and enter mongo. If the content in the figure appears, the installation is successful
10. Enter the address localhost(127.0.0.1):27017 in the browser and the content in the picture appears
So far, mongodb has been successfully installed for this purpose.
If you need to change the port mongod --dapath F: \data\db --port port