You are on page 1of 3

Installation 

· Pritunl

$ sudo nano /etc/yum.repos.d/mongodb‐org‐3.2.repo 
[mongodb‐org‐3.2] 
name=MongoDB Repository 
baseurl=https://repo.mongodb.org/yum/amazon/2013.03/mongodb‐org/3.2/x86_64/ 
gpgcheck=1 
enabled=1 
gpgkey=https://www.mongodb.org/static/pgp/server‐3.2.asc 

$ sudo nano /etc/yum.repos.d/pritunl.repo 
[pritunl] 
name=Pritunl Repository 
baseurl=http://repo.pritunl.com/stable/yum/centos/7/ 
gpgcheck=1 
enabled=1 

$ gpg ‐‐keyserver hkp://keyserver.ubuntu.com ‐‐recv‐keys CF8E292A 
$ gpg ‐‐armor ‐‐export CF8E292A > key.tmp; sudo rpm ‐‐import key.tmp; rm ‐f key.tmp 
$ sudo yum install pritunl mongodb‐org 
$ sudo service mongod start 
$ sudo start pritunl

$ sudo nano /etc/yum.repos.d/mongodb‐org‐3.2.repo 
[mongodb‐org‐3.2] 
name=MongoDB Repository 
baseurl=https://repo.mongodb.org/yum/redhat/$releasever/mongodb‐org/3.2/x86_64/ 
gpgcheck=1 
enabled=1 
gpgkey=https://www.mongodb.org/static/pgp/server‐3.2.asc 

$ nano /etc/yum.repos.d/pritunl.repo 
[pritunl] 
name=Pritunl Repository 
baseurl=http://repo.pritunl.com/stable/yum/centos/7/ 
gpgcheck=1 
enabled=1 

$ yum install epel‐release 
$ gpg ‐‐keyserver hkp://keyserver.ubuntu.com ‐‐recv‐keys CF8E292A 
$ gpg ‐‐armor ‐‐export CF8E292A > key.tmp; rpm ‐‐import key.tmp; rm ‐f key.tmp 
$ yum install pritunl mongodb‐org
$ systemctl start mongod pritunl 
$ systemctl enable mongod pritunl
$ nano /etc/apt/sources.list.d/mongodb‐org‐3.2.list 
deb http://repo.mongodb.org/apt/debian wheezy/mongodb‐org/3.2 main 

$ nano /etc/apt/sources.list.d/pritunl.list 
deb http://repo.pritunl.com/stable/apt wheezy main 

$ apt‐key adv ‐‐keyserver hkp://keyserver.ubuntu.com ‐‐recv EA312927 
$ apt‐key adv ‐‐keyserver hkp://keyserver.ubuntu.com ‐‐recv CF8E292A 
$ apt‐get update 
$ apt‐get install pritunl mongodb‐org 
$ service pritunl start

$ nano /etc/apt/sources.list.d/mongodb‐org‐3.2.list 
deb http://repo.mongodb.org/apt/debian wheezy/mongodb‐org/3.2 main 

$ nano /etc/apt/sources.list.d/pritunl.list 
deb http://repo.pritunl.com/stable/apt jessie main 

$ apt‐key adv ‐‐keyserver hkp://keyserver.ubuntu.com ‐‐recv EA312927 
$ apt‐key adv ‐‐keyserver hkp://keyserver.ubuntu.com ‐‐recv CF8E292A 
$ apt‐get update 
$ apt‐get install pritunl mongodb‐org 
$ systemctl start mongod pritunl 
$ systemctl enable mongod pritunl

$ nano /etc/apt/sources.list.d/mongodb‐org‐3.2.list 
deb http://repo.mongodb.org/apt/ubuntu precise/mongodb‐org/3.2 multiverse 

$ nano /etc/apt/sources.list.d/pritunl.list 
deb http://repo.pritunl.com/stable/apt precise main 

$ apt‐key adv ‐‐keyserver hkp://keyserver.ubuntu.com ‐‐recv EA312927 
$ apt‐key adv ‐‐keyserver hkp://keyserver.ubuntu.com ‐‐recv CF8E292A 
$ apt‐get update 
$ apt‐get install pritunl mongodb‐org 
$ service pritunl start

$ nano /etc/apt/sources.list.d/mongodb‐org‐3.2.list 
deb http://repo.mongodb.org/apt/ubuntu trusty/mongodb‐org/3.2 multiverse 

$ nano /etc/apt/sources.list.d/pritunl.list 
deb http://repo.pritunl.com/stable/apt trusty main 

$ apt‐key adv ‐‐keyserver hkp://keyserver.ubuntu.com ‐‐recv EA312927 
$ apt‐key adv ‐‐keyserver hkp://keyserver.ubuntu.com ‐‐recv CF8E292A 
$ apt‐get update 
$ apt‐get install pritunl mongodb‐org 
$ service pritunl start

$ nano /etc/apt/sources.list.d/mongodb‐org‐3.2.list 
deb http://repo.mongodb.org/apt/ubuntu trusty/mongodb‐org/3.2 multiverse 

$ nano /etc/apt/sources.list.d/pritunl.list 
deb http://repo.pritunl.com/stable/apt wily main 

$ apt‐key adv ‐‐keyserver hkp://keyserver.ubuntu.com ‐‐recv EA312927 
$ apt‐key adv ‐‐keyserver hkp://keyserver.ubuntu.com ‐‐recv CF8E292A 
$ apt‐get update 
$ apt‐get install pritunl mongodb‐org 
$ service pritunl start

$ nano /etc/apt/sources.list.d/mongodb‐org‐3.2.list 
deb http://repo.mongodb.org/apt/ubuntu xenial/mongodb‐org/3.2 multiverse 

$ nano /etc/apt/sources.list.d/pritunl.list 
deb http://repo.pritunl.com/stable/apt xenial main 

$ nano /lib/systemd/system/mongod.service 
[Unit] 
Description=High‐performance, schema‐free document‐oriented database 
After=network.target 

[Service] 
User=mongodb 
ExecStart=/usr/bin/mongod ‐‐config /etc/mongod.conf 

[Install] 
WantedBy=multi‐user.target 

$ apt‐key adv ‐‐keyserver hkp://keyserver.ubuntu.com ‐‐recv EA312927 
$ apt‐key adv ‐‐keyserver hkp://keyserver.ubuntu.com ‐‐recv CF8E292A 
$ apt‐get update 
$ apt‐get install pritunl mongodb‐org 
$ systemctl start pritunl mongod 
$ systemctl enable pritunl mongod

You might also like