How to Install Mongodb Server in Ubuntu 18.04
To download and install Mongodb on Ubuntu 18.04 use below command:
sudo apt install mongodb
sudo apt update
To start mongodb service:
sudo service mongodb start
To open Mongodb shell:
mongo
To insert:
db.yourcol.insert({prop1: “value1”, …})
Comments are closed.