Repository: https://github.com/mongodb/mongo
Download link: https://www.mongodb.com/download-center/community
Select Server Tab
Select MongoDB Community Server
Both MongoDB Community and Enterprise Server are available. The Enterprise version has support for MongoDB, SLA, Ops Manager, Compass and the Connector for BI. It comes with: in-memory Storage Engine, encrypted Storage Engine, and Advanced Security.
The Community Server is totally free and Enterprise is not, so starting with the Community version, testing and evaluating if it is suitable for what you want to do is the best start.
Select the Package MSI:
MSI is an installer package file format used by Windows. Its name comes from the program’s original title, Microsoft Installer, which has since changed to Windows Installer. MSI files are used for installation, storage, and removal of programs.
It is much easier to install from MSI archive than ZIP archive in Windows systems.
Click on Download button
Click on the downloaded msi file
You can click on the MSI file directly from your browser or double-click the file in the folder you saved it.
The following window will appear and you just click Next:
Accept the terms and click on Next
Choose Setup Type
You can choose either the Complete (recommended for most users) or Custom setup type. If you choose the Custom installation option, you may specify which executables are installed and where. I just used the Complete version by clicking on Complete button.
After clicking on “Complete” we can see the Overview Configuration of the Server
Starting in MongoDB 4.0, you can configure and start MongoDB as a Windows service during the install, and the MongoDB service is started upon successful installation.
Running MongoDB as a service gives you some flexibility with how you can run and deploy MongoDB. For example, you can have MongoDB run at startup and restart on failures. If you don't set MongoDB up as a service, you will have to run the MongoDB server every time.
You can:
Running MongoDB as a network service means that your service will have permission to access the network with the same credentials as the computer you are using. Running MongoDB locally will run the service without network connectivity.
Service Name. Specify the service name. The default name is MongoDB. If you already have a service with the specified name, you must choose another name.
Data Directory. Specify the data directory. If the directory does not exist, the installer will create the directory and sets the directory access to the service user.
Log Directory. Specify the Log directory. If the directory does not exist, the installer will create the directory and sets the directory access to the service user.
You can change any configuration if you want, in this tutorial I am going to use the Default Configuration. And click “Next”.
If you don’t want, you can remove the selection of installing MongoDB Compass.
And click “Next”.
Click “Install”
Windows system will ask you if you really want to install, you just confirm it
It will take some minutes to install.
When the installation is finished, you just click “Finish”
The MongoDB Compass will automatically open
All done. Your MongoDB is installed and ready to be used.
In the next parts of this series, I am going to show to use MongoDB.
Download page:
https://www.mongodb.com/download-center/community
Manual:
https://docs.mongodb.com/manual/?_ga=2.235936065.1758499200.1563115578-1869962640.1563115578