How to Install MongoDB on Ubuntu 16.04




MongoDB-tutorial1

  1. Import the public key used by the package management system
    $ sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv 0C49F3730359A14518585931BC711F9BA15703C6
  2. Create a list file for MongoDB
    $ echo "deb http://repo.mongodb.org/apt/ubuntu trusty/mongodb-org/3.4 multiverse" | sudo tee /etc/apt/sources.list.d/mongodb-org-3.4.list
  3. Reload local package database
    $ sudo apt-get update
  4. Install the MongoDB packages
    $ sudo apt-get install -y mongodb-org


 

Start MongoDB

$ sudo service mongod start

Stop MongoDB.

$ sudo service mongod stop

Restart MongoDB.

$ sudo service mongod restart

Video Instructions


Partner Sites

VideoToGifs.com

EasyOnlineConverter.com

SqliteTutorials.com





Be the first to comment

Leave a Reply

Your email address will not be published.


*