9951 explained code solutions for 126 technologies


mongodbHow to install MongoDB on Windows?


  1. Download the MongoDB Windows Server 2008 R2 64-bit and later, MSI Installer from the MongoDB Download Center.

  2. Run the downloaded .msi file to start the installation wizard.

  3. Follow the instructions in the wizard to complete the installation.

  4. After the installation is complete, open the Command Prompt and run the following command to start the MongoDB server:

mongod
  1. To verify that the MongoDB server is running, open another Command Prompt window and run the following command:
mongo

You should see the following output:

MongoDB shell version v4.2.3
connecting to: mongodb://127.0.0.1:27017/?compressors=disabled&gssapiServiceName=mongodb
Implicit session: session { "id" : UUID("f9f9f9f9-f9f9-f9f9-f9f9-f9f9f9f9f9f9") }
MongoDB server version: 4.2.3

Edit this code on GitHub