0% found this document useful (0 votes)
113 views7 pages

PR No 1 (Installation Steps MongoDB)

To install MongoDB: 1. Download the MongoDB Community Server from the MongoDB Download Center. 2. Accept the End-User License Agreement and select the complete installation option or custom option. 3. Set the data directory path, install MongoDB, and set the environment path variable to the bin directory.

Uploaded by

Harshal Bodhe
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
113 views7 pages

PR No 1 (Installation Steps MongoDB)

To install MongoDB: 1. Download the MongoDB Community Server from the MongoDB Download Center. 2. Accept the End-User License Agreement and select the complete installation option or custom option. 3. Set the data directory path, install MongoDB, and set the environment path variable to the bin directory.

Uploaded by

Harshal Bodhe
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 7

Installation steps MongoDB

Step 1: Go to MongoDB Download Center to download MongoDB


Community Server.

Step 2: When the download is complete open the msi file and click the next
button in the startup screen:

Step 3: Now accept the End-User License Agreement and click the next
button:
Step 4: Now select the complete option to install all the program features.
Here, if you can want to install only selected program features and want to
select the location of the installation, then use the Custom option:
Step 5: Select “Run service as Network Service user” and copy the path of
the data directory. Click Next:

Step 6: Click the Install button to start the installation process:

Step 7: After clicking on the install button installation of MongoDB begins:


Step 8: Now click the Finish button to complete the installation process:

Step 9: Now we go to the location where MongoDB installed in step 5 in


your system and copy the bin path:
Step 10: Now, to create an environment variable open system properties <<
Environment Variable << System variable << path << Edit Environment
variable and paste the copied link to your environment system and click Ok:

Step 11: After setting the environment variable, we will run the MongoDB
server, i.e. mongod. So, open the command prompt and run the following
command:
mongod
When you run this command you will get an error i.e. C:/data/db/ not found.
Step 12: Now, Open C drive and create a folder named “data” inside this
folder create another folder named “db”. After creating these folders. Again
open the command prompt and run the following command:
mongod
Now, this time the MongoDB server(i.e., mongod) will run successfully.

Run mongo Shell


Step 13: Now we are going to connect our server (mongod) with the mongo
shell. So, keep that mongod window and open a new command prompt
window and write mongo. Now, our mongo shell will successfully connect
to the mongod.
Important Point: Please do not close the mongod window if you close this
window your server will stop working and it will not able to connect with
the mongo shell.

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy