cli mongodb start server code example
Example 1: mongodb start server
sudo systemctl start mongodb
Example 2: start mongodb in terminal
Start a terminal for your mongo server
Go to /bin directory
Run the command./mongod
Start a terminal for your mongo shell
Go to /bin directory
Run the command (make sure you put the name of the database)./mongo test