Follow the steps below to download, install, and set up MongoDB on your system.
Visit MongoDB Community Server and download the application.
Execute the downloaded installer and follow the installation instructions.
Visit Download MongoDB Shell and download the MongoDB Shell.
Add the following path to your system's environment variables:
C:\Program Files\MongoDB\Server\7.0\bin
Open a command prompt and run the following command to check the MongoDB version:
"C:\Program Files\MongoDB\Server\7.0\bin\mongod.exe" --version
Open Git Bash and run one of the following commands to check the MongoDB version:
"C:\Program Files\MongoDB\Server\7.0\bin\mongod.exe" --version
or
mongod --version
Make sure that the version displayed matches the MongoDB version you installed.
Search for "services" in the Windows search bar, and ensure that the MongoDB service is running. If not, start the service.
Open a command prompt and type the following command to run MongoDB Shell:
mongosh
Now you are ready to work with MongoDB using the installed MongoDB Shell. Enjoy working with MongoDB!