mongo install

C++
mongo -version1 - download .msi from below site
https://www.mongodb.com/try/download/community?tck=docs_server
2 - go to dir & run 'mongo' command
"C:\Program Files\MongoDB\Server\4.4\bin\mongo.exe"
>mongo
3 - to start server
>mongod // run this command from where data dir is exists while installing mongodbsudo apt install -y mongodb
# it will install mongodb server into linux system sudo apt install mongodb-clients
Source

Also in C++: