1 Introduction
First look at the effect of the official website: Self-hosted photo-management done right , I think the visual effect is very good-looking, so I use this framework.
Official project: LycheeOrg/Lychee
2. Purchase server and install pagoda
Huawei Cloud is used here, and you can try it for free for one month, which is just used for experimentation.
Assuming you already have a server, the system uses Centos7, now enter the server, install the pagoda panel (convenient to configure the environment).
First log in to Pagoda , click "Install Pagoda" on the left, copy the Centos installation script command, then specify the command in the server terminal, and wait for the installation to complete, as shown in the figure below: Please remember: now
we 1)外网面板地址;2)username和password
can access it through the address of the external network panel , but port 28007 may not be opened, so open this port as needed, for example, Huawei Cloud is set in the security group.
If the port is successfully installed and opened, you can enter the login interface of the pagoda panel by visiting this address, and the user name and password are the initial user name and password given above.
3. Install LNMP in the pagoda
When we enter the pagoda interface for the first time, the following interface will pop up to install the environment with one click. If you want to test once, you can choose the fast installation of LNMP (a few minutes), and if it is more stable, you can choose to compile and install (it takes tens of minutes), and then One-click installation.
4. Install docker
After the installation in the previous step is completed, install docker as shown in the figure below and wait for completion
5. Deploy lycheeorg
Pull lychee on the command line:
docker pull lycheeorg/lychee
Once installed, start lychee:
docker run -it -d -p 5120:80 lycheeorg/lychee
- run: start a container
- d: run in the background
- 5120: The external port of the project
- 80: internal port
- lycheeorg/lychee: mirror name
After successful startup, we can see the started container in the docker of Pagoda:
We see that lychee uses port 5120, so we also need to open port 5120:
1) Open it in Pagoda: Security-Add Port Rules
2) Open it in the server: it is the same as opening the port in step 2, in HUAWEI CLOUD Go to the security group to open the port
6. Test
Now our lychee has been deployed and has port 5120, so we can ip:port
access lychee through the public network of the server:
When we enter for the first time, we will be prompted to create an account, just create it directly.
7. Others
Of course, there are also those who build lychee on NAS, you can lychee NAS
search for more tutorials on Baidu
Let the NAS free public network access PPPOE to obtain a public network IP, so that you can access your home cloud service anytime, anywhere for free and unlimited speed (for reference only, have not tried it)