赞
踩
1、安装MongoDB(MongoDB做为Pritunl的后台数据库)
1)添加MongoDB XX.X源
vi /etc/yum.repos.d/mongodb-org.repo
[mongodb-org]
name=MongoDB XX.X Repository
baseurl=https://repo.mongodb.org/yum/redhat/$releasever/mongodb-org/XX.X/x86_64/
gpgcheck=1
enabled=1
gpgkey=https://www.mongodb.org/static/pgp/server-XX.X.asc
2)安装
yum install mongodb-org
/etc/mongod.conf-MongoDB配置文件,其中包含监听端口
/var/lib/mongo-MongoDB数据保存目录
/var/log/mongodb/mongod.log-MongoDB的日志文件
3)启动Mongodb
systemctl start mongod.service
systemctl enable mongod.service
***需要打开27017端口
firewall-cmd--zone=public--add-port=27017/tcp--permanent
firewall-cmd--reload
*** 4)卸载MongoDB
systemctl stop mongod
yum erase$(rpm-qagrep mongodb-org)
rm-rf/var/log/mongodb
rm-rf/var/lib/mongo
2、安装pritunl
1)添加pritunl源
vi /etc/yum.repos.d/pritunl.repo
[pritunl]
name=Pritunl Repository
baseurl=http://repo.pritunl.com/stable/yum/centos/7/
gpgcheck=1
enabled=1
2)添加key
gpg --keyserver hkp://keyserver.ubuntu.com--recv-keys CF8E292A
gpg --armor--export CF8E292A>key.tmp;rpm--import key.tmp;rm-fkey.tmp
3)安装pritunl
yum install epel-release
yum install pritunl
4)启动服务
systemctl start mongod
systemctl start pritunl
systemctl enable mongod
systemctl enable pritunl
3、使用pritunl
1)浏览器访问
https://Server IP (确保 443端口打开)
2)生成key
pritunl setup-key
3)登录(默认登录名、密码: pritunl: pritunl)
4)添加Organisation
5)Add Server
6)Attach Organisation
7)Start Server
8)Add User
9)下载配置文件(添加到相应客户端)
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。