set up mongodb code example Example 1: start mongodb sudo systemctl start mongod Example 2: install mongodb 2018 instructions vim .bash_profile