How to configure Mongodb authentication

22 Feb 2021

blog details

How to configure Mongodb authentication

By: RSDigitech | Published At : 22 Feb 2021    


Steps to Configure MONGO DB

Step1:

Download the Mongo DB from the below link

https://www.mongodb.com/try/download/community


donwload mongodb

 

After the successful download, install MongoDB.

 successfully downlaod and install

 

 “Agree” to the terms and conditions.

 “Agree” to the terms and conditions.

 Click on complete and Next

 Click on complete and Next

 Leave it as MongoDb Service.

Leave it as MongoDb Service.

 Proceed to next and wait till the installation is complete.

Proceed to next and wait till the installation complete.

 Click "Finish" to proceed with the Final installation.

 Final installation


Step2:

 After Installation, the Mongo files are created in

“C:\Program Files\MongoDB\Server\4.4\bin“

 After Installation the mongo files are created in

Step3:

 Open “CMD ” in the same folder where the ongo files are created.

Open “CMD ” in the same folder where the mongo files are created.


Step4:

Run “mongod ” command to start the server

Run “mongod ” command to start the server

Step5:

Create a folder as data/db in the C: drive

 Create folder as data/db in the C: drive

 

Then try the “mongod ” command again

 Server starts running.

Server starts running

 Step6:

 Set it as environment Variable “C:\Program Files\MongoDB\Server\4.4\bin“

 

Set it as environment Variable “C:\Program Files\MongoDB\Server\4.4\bin“

Set it as environment Variable “C:\Program Files\MongoDB\Server\4.4\bin“ 2

 Run “mongodb ”