mongo db install on a server code example Example 1: mongo install sudo apt install mongodb-clients Example 2: install mongodb 2018 instructions mongo --version