Install MongoDB Community on Windows using the Zip File

  1. Install MongoDB Community Edition

    • Download the MongoDB .zip file from the following link:
      MongoDB Download Center.

    • You can create a configuration file to specify options for MongoDB. To do so, create a file named mongod.cfg in the \bin\ directory within the directory where you extracted the MongoDB files (< install directory>\bin\mongod.cfg). For more information on creating a config file, see
      
          systemLog:
               destination: file
               path: "D:\\doc\\it\\mo\\bin\\mongod.log"
               logAppend: true
          storage:
               dbPath: "D:\\doc\\it\\mo\\db"
          net:
               bindIp: localhost
               port: 27017
      
                                  
    • Open a Windows command prompt/interpreter (cmd.exe) as an Administrator.

      
         mongod.exe --dbpath="D:\doc\it\mo\db"
      
                                  
      • The --dbpath option points to your database directory.

      To start MongoDB, run

      
        mongod.exe --config "D:\doc\it\mo\bin\mongod.cfg"  --install
      
                                  
  2. Install mongosh