PR No 1 (Installation Steps MongoDB)
PR No 1 (Installation Steps MongoDB)
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 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.