Install MongoDB for Windows
- First Visit the MongoDB download Website (https://www.mongodb.com/try/download/community)
- Choose the correct version for your Windows system (64-bit or 32-bit).
- Click on Download Button and Download.
Download and run on Window OS.
Install MongoDB on Ubuntu
Follow Some Steps-
1.Update Package -
sudo apt update
2. Install MongoDB-
sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv 7F0CEB10
sudo apt-get install mongodb-10gen = 4.2
3. Start MongoDB Service-
sudo service mongodb start
4. Stop MongoDB-
sudo service mongodb stop
5. Restart MongoDB-
sudo service mongodb restart
6. run mongodb-
mongo