How to Install MongoDB on Windows – 5 Simple Steps – MongoDB is one of the most popular NoSQL databases used in modern web applications, especially for MERN stack development. If you are a beginner and want to install MongoDB on a Windows system without confusion, this guide will walk you through the entire process step by step.
This tutorial explains how to download, install, configure, and verify MongoDB on Windows, following a simple 5-step approach.

Installing MongoDB on Windows in 5 Simple Steps
Step 1: Check System Requirements and Prepare Your PC
Before installing MongoDB, it is important to ensure your system is compatible.
Supported Windows Versions
MongoDB Community Edition officially supports:
-
Windows 11 (64-bit)
-
Windows Server 2019 and 2022 (64-bit)
MongoDB does not support 32-bit Windows systems or WSL (Windows Subsystem for Linux).
Minimum Hardware Requirements
-
RAM: 4 GB or more
-
Disk Space: Minimum 10 GB free space
-
Processor: 64-bit (x86_64 architecture)
Quick Pre-Installation Checklist
-
Make sure Windows is updated
-
Disable antivirus temporarily if it blocks installers
-
Close all unnecessary background applications
Completing these checks helps avoid common installation errors later.
Step 2: Download MongoDB Community Server
Now let’s download MongoDB from the official source.
Go to the MongoDB Download Page
Open your browser and visit the MongoDB Community Server download page.

Choose the Correct Options
On the download screen:
-
Version: Latest stable release (recommended)
-
Platform: Windows
-
Package: MSI

Click the Download button to start downloading the installer file.
The
.msifile is a Windows installer that simplifies the setup process.
Step 3: Install MongoDB on Windows
Once the download is complete, begin the installation process.
Run the Installer
-
Go to your Downloads folder
-
Double-click the downloaded
.msifile




Choose Installation Type
You will be asked to select an installation type:
-
Complete (Recommended): Installs all required components automatically
-
Custom: Allows manual configuration
For beginners, choose Complete.


Install MongoDB Compass (Optional)
MongoDB Compass is a GUI tool that allows you to manage databases visually.
-
Keep the checkbox enabled if you prefer a graphical interface
-
You can also skip it and use the terminal
Click Install and wait for the setup to finish.
Step 4: Configure MongoDB as a Windows Service
Running MongoDB as a Windows service ensures it starts automatically when your system boots.
Why Run MongoDB as a Service?
-
No need to start MongoDB manually
-
Runs in the background
-
Ideal for development and production environments
During installation:
-
Select Run MongoDB as a Service
-
Keep the default service name:
-
Use default data and log directories
MongoDB will now start automatically every time Windows starts .
Verify Service Status
-
Press Windows + R
-
Type
services.msc
-
Look for MongoDB Server
-
Status should be Running
Step 5: Verify Installation and Connect to MongoDB

After installation, let’s confirm everything is working correctly.
Check MongoDB Version
Open Command Prompt and run:
If MongoDB is installed correctly, the version details will be displayed.
Connect Using Mongo Shell
Run:
You should see a successful connection message.
Test Basic Commands
If these commands run without errors, your MongoDB installation is successful.
Common Troubleshooting Tips
-
If
mongoshis not recognized, add MongoDB’sbinfolder to the system PATH -
Ensure port 27017 is not blocked by firewall
-
Restart the MongoDB service if connection fails
Conclusion
Installing MongoDB on Windows is straightforward when done step by step. From checking system requirements to verifying the final connection, this guide ensures you complete the setup without confusion.
With MongoDB successfully installed, you’re now ready to:
-
Build MERN stack applications
-
Work with large datasets
-
Explore real-time and scalable database solutions
MongoDB is a powerful skill to add to your developer toolkit—start practicing and experimenting today.
Want to Learn More About Database, Kaashiv Infotech Offers, MongoDB Course, SQL Course, Mysql Course, SQL Internship & More Visit Our website www.kaashivinfotech.com.