Step 1: Go to the following link for installing the MongoDB Community Server
Click on the following link: https://www.mongodb.com/download-center/community
Step 2: Select the latest version and the Package should be MSI. Now click download.
Step 3: As the download is complete click on the MSI file. Click Next in the start-up screen
Step 4: Accept the terms and the conditions and click Next
Step 5: Now select the complete option and click next
Step 6: Select MongoDB as a service
Step 7: Click NEXT
Step 8: Click on the install button
Step 9: After installation click finish