第一步,要确保selinux是disabled
第二步,安装mongodb,自行搜索安装方式
第四步,创建数据目录
mkdir -p /data/mongodata
第五步,启动mongodb
开始安装pritunl
第一步,创建pritunl源
vi /etc/yum.repos.d/pritunl.repo
[pritunl]
name=Pritunl Repository
baseurl=http://mirrors.shuosc.org/pritunl/stable/yum/centos/7/
gpgcheck=1
enabled=1
第二步,安装pritunl
yum install epel-release
yum install pritunl
(如果遇到这个命令下载文件中断,自行单独下载安装一下)
wget http://mirrors.shuosc.org/pritunl/stable/yum/centos/7/pritunl-1.26.1188.41-1.el7.centos.x86_64.rpm
rpm -ih pritunl-1.26.1188.41-1.el7.centos.x86_64.rpm
第三步,启动服务
systemctl start pritunl
systemctl enable pritunl
第四步,使用pritunl
使用浏览器访问:https://Your-Server-IP:443
//setup 在服务器上执行pritunl setup-key 生成key 使用默认的用户名和密码登陆(pritunl:pritunl);
初始化设置 添加组织 添加server Attach Organisation 启动server 创建user 下载配置文件