download
You can go to the official website to download: https://www.mongodb.com/download-center/community
installation
Download finished you can use the installation package; mongodb I downloaded version is: v4.0.9
.
Been the next step here, the first one is installed by default (the next step has been no pit);
The second is a custom installation (emphasis speak here)
Select Custom Installation, clickCustom
Click to Browse...
select a custom directory, I chose to put: D:\mongodb
directory, clicknext
Whether the data in the database mongodb unified directory?
If so, the Data Dirctory
option to: D:\mongodb\data\db
, and then the next step.
If not, choose a directory, for example, I put D盘
the root directory, then I will create a new file as follows:
D:\data
D:\data\db
D:\data\logs
D:\data\logs\MongoDB.log
Then the next step.
Cancel the check, or the installation will be very troublesome, tick will help you install MongoDB Compass software MongoDB graphical management software.
That is the end of this installation.