Install, Run and Connect to MongoDB on Windows

Updated: Nov 24 2021

Install MongoDB

   From a command prompt or PowerShell as Administrator, type the below command to install MongoDB

 C:\...> choco install mongodb 





Once installation is completed, verify that MongoDB installation location is : “C:\Program Files\MongoDB\Server\{version}\bin”

Verify MongoDB is running as service

Search for Services next to the Windows button and open the Services:




  

 Once Services are open look for "MongoDB Server" and verify that status is running:


 











Connect to MongoDB using mongo shell

To begin using MongoDB, connect a mongo shell (client) to the running instance. 

Type below command from a new command prompt or PowerShell tab:

 C:\...> "C:\Program Files\MongoDB\Server\5.1\bin\mongo.exe"

 






Comments

Popular posts from this blog

IntelliJ IDE Setup on Mac

Basic Setup for Java on Mac and Windows

Working with mongo shell

Install, Run and Connect to MongoDB on Mac