## Authenticity by requiring that distributors sign packages with GPG keys.
sudo apt-key adv --keyserver keyserver.ubuntu.com --recv 7F0CEB10
cd /etc/apt/sources.list.d
sudo touch 10gen.list
sudo nano 10gen.list
## add in document this command deb http://downloads-distro.mongodb.org/repo/debian-sysvinit dist 10gen
sudo apt-get update
## Now issue the following command to reload your repository:
sudo apt-get install mongodb-10gen
## Issue the following command to install the latest stable version of MongoDB:
sudo apt-get install mongodb-10gen
## Successfully installed MongoDB
## You can connect to your MongoDB with mongo command
mongo
## This will connect to the database running on the localhost interface by default. At the mongo prompt, issue the following two commands to insert a record in the “test” collection of the (default) “test” database.
> db.test.save( { a: 1 } )
> db.test.find()
Comments
Post a Comment