How to Install:
Follow the below steps to complete the installation of MongoDB Community Edition on Windows.
Click link --> https://www.mongodb.com/download-center/community |
After download, double click the file. |
Click Next |
Click Next |
Click Complete |
Click Next |
UnChecl the Box "Install MongoDB Compass and Click Next |
Click Install |
Click Next |
Click Finish |
Go to C:\Program Files\MongoDB\Server\4.2\bin for start the MongoDB server Open CMD Type the above path and then type mongod and press enter |
Now your MongoDB server is started. If no error is coming. I got below error… |
Because, after installation we have to create data and db folder under c:\ drive for storage. Create a folder called data under c:\ drive Create another folder called db under data folder in C:\ drive Lets try one more time. |
Now MongoDB server started, Please do not close this window. |
Now check the server is responding or not. Open CMD ( A different window). Type mongo --version then enter. |
Now type > mongo then enter |
Now you can execute command on mongoDB. Let’s try show dbs then enter |
MongoDB server is running fine. Now Exit to close the mongoDB |
Close this window. Now press Ctrl+C to close 2nd cmd window (where server is running command prompt window). |
No comments:
Post a Comment