How to start MongoDB on Ubuntu
kodingwindow@kw:~$ sudo systemctl start mongod
kodingwindow@kw:~$ mongosh
Current Mongosh Log ID:	65154469633b7d0fc9cad531
Connecting to:		mongodb://127.0.0.1:27017/?directConnection=true&serverSelectionTimeoutMS=2000&appName=mongosh+2.2.5
Using MongoDB:		7.0.9
Using Mongosh:		2.2.5

For mongosh info see: https://docs.mongodb.com/mongodb-shell/
...
kodingwindow@kw:~$ mongosh --version
2.2.5
Advertisement