Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to install Pritunl in CentOS 7 system

2025-01-18 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >

Share

Shulou(Shulou.com)06/02 Report--

This article will explain in detail how to install Pritunl in the CentOS 7 system, the content of the article is of high quality, so the editor will share it with you for reference. I hope you will have a certain understanding of the relevant knowledge after reading this article.

CentOS 7--Pritunl installation

1. Install MongoDB (MongoDB acts as the background database of Pritunl)

1) add MongoDB XX.X feeds

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) installation

Yum install mongodb-org

/ etc/mongod.conf-MongoDB configuration file, which contains listening ports

/ var/lib/mongo-MongoDB data storage directory

Log file for / var/log/mongodb/mongod.log-MongoDB

3) start Mongodb

Systemctl start mongod.service

Systemctl enable mongod.service

* Port 27017 needs to be opened.

Firewall-cmd--zone=public--add-port=27017/tcp--permanent

Firewall-cmd--reload

* 4) Uninstall MongoDB

Systemctl stop mongod

Yum erase$ (rpm-qagrep mongodb-org)

Rm-rf/var/log/mongodb

Rm-rf/var/lib/mongo

2. Install pritunl

1) add pritunl feeds

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) add key

Gpg-keyserver hkp://keyserver.ubuntu.com--recv-keys CF8E292A

Gpg-- armor--export CF8E292A > key.tmp;rpm--import key.tmp;rm-fkey.tmp

3) install pritunl

Yum install epel-release

Yum install pritunl

4) start the service

Systemctl start mongod

Systemctl start pritunl

Systemctl enable mongod

Systemctl enable pritunl

3. Use pritunl

1) browser access

Https://Server IP (make sure port 443 is open)

2) generate key

Pritunl setup-key

3) Login (default login name, password: pritunl: pritunl)

4) add Organisation

5) Add Server

6) Attach Organisation

7) Start Server

8) Add User

9) download the configuration file (add to the appropriate client)

On how to install Pritunl in the CentOS 7 system to share here, I hope the above content can be of some help to you, can learn more knowledge. If you think the article is good, you can share it for more people to see.

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Internet Technology

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report