mongo db install code example

Example 1: mongodb installation on mac

//Starts Mongdb server @ mongodb://127.0.0.1:27017/
brew services start mongodb-community@4.2
mongod --config /usr/local/etc/mongod.conf --fork
ps aux | grep -v grep | grep mongod
mongo

Example 2: mongo install

sudo apt install mongodb-clients

Example 3: install mongodb 2018 instructions

mongo --version

Example 4: install mongodb 2018 instructions

vim .bash_profile

Example 5: install mongodb 2018 instructions

touch .bash_profile

Tags:

Go Example