当前位置:网站首页>[tutorial] build librephotos using Tencent cloud lightweight application server to support photo management of face recognition!
[tutorial] build librephotos using Tencent cloud lightweight application server to support photo management of face recognition!
2022-06-23 22:07:00 【laulzgoay】
Preface
not long ago , Tencent cloud's "double 12" activity has already started , Do you guys rush to buy the goods you like ? Are there any troubles for the big men who follow the trend and do not know what to do ? Today, bloggers continue to bring you the playing method of Tencent cloud lightweight application server , I always organize my pictures 、 Photo , Now the network disk can also be very convenient to organize photos , But there are still many people who want a photo management program of their own , Let's start !
preparation
A Tencent cloud lightweight application server (HK Or domestic
Why use Tencent cloud lightweight application server ? When we reinstalled the Tencent cloud lightweight application server , Pagoda cooperates with Tencent cloud to launch Tencent cloud exclusive pagoda , Compared with the normal version , The exclusive version integrates Tencent cloud by default COSFS、CDN and DNS Parsing plug-ins , Let users more easily use the pagoda panel to manage and operate Tencent cloud products . The image is based on CentOS 7.8 64 Bit operating system . When we reinstalled the Tencent cloud lightweight application server , You can choose to apply a mirror , And then choose pagoda Linux panel 7.6.0 Tencent cloud exclusive Edition , Then we can use Tencent cloud lightweight application server and pagoda Linux panel 7.6.0 Tencent cloud exclusive Edition More relaxed 、 It is convenient to deploy and build the programs we need !
Be careful
This software is based on Tencent cloud lightweight application server installation , Recommended minimum 2C4G Configuration of , The Tencent cloud lightweight application server system used in the tutorial is CentOS 7.8 ! Theoretically, Tencent cloud lightweight application server is pagoda Linux panel 7.6.0 Tencent cloud exclusive Edition 、CentOS 7.8 The server operation of should be basically consistent with this article ( Including process and error reporting , Other servers should be similar to this article !
LibrePhotos Official website
Interface demonstration
install LibrePhotos
1. Environmental preparation
1. Install the required software
Enter the software store , Search for Nginx 、 Docker , Click on the install , Please use compile to install the production environment !!!
2. install Docker-compose
curl -L https://github.com/docker/compose/releases/download/1.29.2/docker-compose-`uname -s`-`uname -m` -o /usr/local/bin/docker-compose chmod +x /usr/local/bin/docker-compose
Domestic machines can be used Github The generation of
curl -L https://hub.fastgit.org/docker/compose/releases/download/1.29.2/docker-compose-`uname -s`-`uname -m` -o /usr/local/bin/docker-compose chmod +x /usr/local/bin/docker-compose
2. install LibrePhotos
1. Clone Repository
Clone Repository
git clone https://github.com/LibrePhotos/librephotos-docker.git cd librephotos-docker
Domestic machines can be used Github The generation of
git clone https://hub.fastgit.org/LibrePhotos/librephotos-docker.git cd librephotos-docker
2. Copy the configuration and modify
cp librephotos.env .env vi .env
Modify the items listed below
timeZone=Asia/Shanghai // The time zone , You need to add this line configuration by yourself ! userName=xjisme // Administrator user name userPass=xjisme // Administrator password [email protected] // Administrator mailbox shhhhKey=xjisme // Random key httpPort=2077 // Exposed service port dbName=librephotos // Database name dbUser=docker // Database users dbPass=xjisme // Database user password gunniWorkers=4 // Number of workers , Estimated consumption per worker 800MB RAM HEAVYWEIGHT_PROCESS=4 // Multithreaded scanning , Estimated consumption per worker 800MB RAM
then Esc + :wq Just exit and save .
3. Start the program
Enter the following command , Start the program
docker-compose -f docker-compose.yml up -d
ARM The machine enters the following command , Start the program
docker-compose -f docker-compose.arm.yml up -d
Then enter the following command again , Check the operation status of each container , All are Up Then it will be normal !
docker-compose ps
3. Set anti substitution
1. Add a website
Enter the pagoda panel , Go to the website , Add a website , Fill in the domain name
2. Set anti substitution
Click reverse proxy , Add reverse proxy , Fill in the name of the agent arbitrarily , The goal is IP General filling http://127.0.0.1:2077 Be careful : If you were in Docker-compose The port exposed inside is not 2077, It needs to be modified to the corresponding , If the whole process is built according to this article , It's usually 2077.
3. Set Certificate ( Optional )
Click on SSL, Apply for or fill in the existing certificate !
4. Program usage
1. open LibrePhotos
Open your domain name in the browser , visit LibrePhotos , Use in .env Login with the account and password set in LibrePhotos
2. Set the directory
open LibrePhotos after , Click on the top right picture , Click on Admin Area Enter the management area
Click on Scan Directory Edit icon below , Set up Scan Directory
For personal use, select the default /data that will do
3. Program experience
Xiaojun sent several photos of Ouyang Nana and Cheng Xiao respectively , And manually marked one of the photos of each person
Some photos of Ouyang Nana and Cheng Xiao were also sent , Then start the face training of the program , You can see that the result is very strong , All the photos passed later have been classified correctly
thus , We've built it LibrePhotos Photo manager !!! The browser can access the domain name you just set to use ! After logging in, you can enjoy , Let's operate quickly ! Ps: It is necessary to open corresponding ports in the background firewall of Tencent cloud lightweight application server ! Open by default 8888 tcp80 tcp And 443 tcp Oh .
边栏推荐
- Redis source code analysis -- QuickList of redis list implementation principle
- Interpretation of opentelemetry project
- How to deal with high memory in API gateway how to maintain API gateway
- Dart series: smooth as silk, operating files and directories
- What is the use of PMP certification?
- Outlook開機自啟+關閉時最小化
- Take you through the distributed file system
- Tencent cloud database tdsql elite challenge Q & A (real-time update)
- How the API gateway obtains the URI path and how the API handles local access failure
- Configuring error sets using MySQL for Ubuntu 20.04.4 LTS
猜你喜欢

Ten thousand words! Understand the inheritedwidget local refresh mechanism

Minimize outlook startup + shutdown

Code implementation of CAD drawing online web measurement tool (measuring distance, area, angle, etc.)

Find My资讯|苹果可能会推出第二代AirTag,试试伦茨科技Find My方案

Find my information | Apple may launch the second generation airtag. Try the Lenz technology find my solution

Installation and use of Minio

Minimisé lorsque Outlook est allumé + éteint

Cloud native practice of meituan cluster scheduling system

CAD图在线Web测量工具代码实现(测量距离、面积、角度等)
Performance optimization of database 5- database, table and data migration
随机推荐
TDD development mode recommendation process
How to correctly divide data into databases and tables
The transaction code mp83 at the initial level of SAP retail displays a prediction parameter file
How to use the serial port assistant in STC ISP?
How the API gateway obtains the URI path and how the API handles local access failure
What causes the applet SSL certificate to expire? How to solve the problem when the applet SSL certificate expires?
MySQL de duplication query only keeps one latest record
Common commands for cleaning up kubernetes cluster resources
EDI mandatory manual
什么是股票线上开户?手机开户安全么?
After easydss is configured with domain name / public IP, it will always prompt for troubleshooting problems that do not exist in the service
Outlook开机自启+关闭时最小化
Kubernetes cluster lossless upgrade practice
Introduction to scikit learn machine learning practice
How to deal with the situation of repeated streaming and chaotic live broadcast in easydss?
Tdsql elite challenge CVM voucher usage guide
HDLBits->Circuits->Arithmetic Circuitd->3-bit binary adder
《阿里云天池大赛赛题解析》——O2O优惠卷预测
[same origin policy - cross domain issues]
Bcdedit, used to adjust the machine startup parameters (safe mode, BootMenu display name, CPU, memory, etc.)