lycheeorg online photo album construction

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.
insert image description here

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
Please add a picture description
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.

insert image description here

4. Install docker

After the installation in the previous step is completed, install docker as shown in the figure below and wait for completion
insert image description here

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:
insert image description here

We see that lychee uses port 5120, so we also need to open port 5120:
1) Open it in Pagoda: Security-Add Port Rules
insert image description here
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:portaccess lychee through the public network of the server:
insert image description here

When we enter for the first time, we will be prompted to create an account, just create it directly.

7. Others

Yuanchuang Call for Papers|Make a Photo Album for Mom——Nanny-Level Tutorial for Building a Lychee Photo Album on the Server

Of course, there are also those who build lychee on NAS, you can lychee NASsearch 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)

Guess you like

Origin blog.csdn.net/qq_40243750/article/details/129670772