EasyImage simple picture bed- quickly build a private picture bed cloud disk and remote access at the same time

Forwarded from the article of CSDN remote intranet penetration: Private image bed - quickly build a simple EasyImage image bed locally and realize remote access to the public network

1 Introduction

A good picture bed is the key to the stable display of website or article pictures. However, many picture beds are either unstable or charge fees, causing websites or article pictures to hang up frequently. The author also encountered such troubles. In order to make my pictures display stably, I plan to use the combination of cpolar intranet penetration + EasyImage to build a picture bed website by myself to avoid the problem of pictures not being displayed.

2. EasyImage website construction

Simple picture bed EasyImage is a free and open source picture bed program. Although it is an open source program, its functions are not weak at all. It not only supports multiple file uploads, text/picture watermarks, supports API and pornography, but also customizes codes. , the most important thing is that it is not mandatory to use the database to run, which brings great convenience to our deployment and maintenance. Now, let's get started.

2.1. EasyImage download and install

First, we download the compressed package of EasyImage, which can be found on the official website:

20230428105101

20230428105102

After downloading the compressed package of the website files, unzip it, and paste all the unzipped files under phpstudy WWW文件夹.

20230428105103

20230428105104

Next, we open the main page of phpstudy, click 网站the button, and enter the website setting page. At the top left of the website settings page, click 创建网站.

20230428105105

Since EasyImage does not rely on the database to run, as long as you set 域名, 端口, 网站根目录, and php版本several items, you can click 确认the button at the bottom of the website setting page to save the settings and generate the EasyImage website. It should be noted that EasyImage relies on PHP7+ to run, and the author chose php7.2.9.

Then, we only need to open the EasyImage website (you can right-click the website entry in phpstudy, or enter localhost:port number in the browser to open the website), and you can enter the EasyImage installation page. EasyImage will automatically check the website installation environment, install After the environment self-test passes, you can click Next to continue setting up the administrator account.

20230428105106

20230428105107

There is nothing to say about the administrator account settings, just remember the login name and password, and then click the 开始安装button at the bottom of the page to automatically install the EasyImage website. After a short time, the EasyImage installation will display the installation completion notification

20230428105108

2.2. EasyImage web page test

After EasyImage is installed locally, we can visit the EasyImage website locally, and the login page will appear. After entering the corresponding login name and password, we can enter the EasyImage website.

20230428105109

20230428105110

2.3.cpolar installation and registration

After completing the deployment of the EasyImage website on the local computer, you can switch to the installation of cpolar. Like the EasyImage website, cpolar is very easy to install. Just find the button directly on the official website of cpolar 下载and click to download the cpolar installation package.

cpolar official website: https://www.cpolar.com/

20230428105111

The author uses the Windows operating system, so choose the Windows version to download.

After the download of Cpolar is complete, decompress the downloaded compressed file, double-click the decompressed .msifile to automatically execute the installation program, and then Nextcomplete the installation all the way.

20230428105113

20230428105114

As a data tunnel software, cpolar will create an independent data tunnel for each user, supplemented by user passwords and token codes to ensure data security, so user registration is required before using cpolar. The registration process is very simple, just click on the upper right corner of the cpolar homepage 用户注册, fill in the relevant information on the registration page, and the registration can be completed.

20230428105115

20230428105116

3. Local web publishing

After completing the installation of the EasyImage website and the installation and registration of the cpolar intranet penetration program, you can use the cpolar intranet penetration to create a public Internet address that can connect to the local EasyImage website, so that we can access the local website on the public Internet. EasyImage image bed website.

3.1. Cpolar cloud settings

As the author said at the beginning of this article, the image bed pays attention to stability, and the data tunnel of the free version of cpolar resets every 24 hours. The author does not want to reconnect every day, so I upgrade cpolar to the VIP version in order to obtain a long-term stable intranet penetration data tunnel.

As a VIP customer, in order to set up a data tunnel that can exist stably for a long time, you need to log in to cpolar's official website, find the "Reserve" button on the left side of the user's main page, and click to enter the cpolar data tunnel reservation page.

A public Internet address is generated here (which can be regarded as the entrance of the data tunnel). Since this address is not connected to the local software output port at this time, it can also be regarded as a blank data tunnel.

20230428105117

On the reservation page, you can see many kinds of data tunnels that can be reserved. Here we select 保留二级子域名the field.

20230428105118

In the field of "Reserve the second-level subdomain name", several simple information settings need to be made, namely

  • 地区: The area where the server is located, just select the nearest one
  • 二级域名: Will eventually appear in the generated public Internet address as one of the identifiers of the network address
  • 描述: It can be regarded as the description of this data tunnel, which can be distinguished from other tunnels).

After completing these settings, you can click 保留the button on the right to keep this data tunnel.

20230428105119

Of course, if this data tunnel is no longer intended to be used, you can click the "x" on the right to delete it easily, saving valuable tunnel quota.

20230428105120

3.2 Cpolar intranet penetration local settings

After completing the setting of the cpolar cloud and keeping the blank data tunnel, we return to the cpolar client of the local computer, and connect the blank data tunnel generated by the cpolar cloud with the local EasyImage website, so that we can access the local site on the public Internet EasyImage website.

Open and log in the cpolar client on the local computer (you can directly access it by typing in the browser localhost:9200, or click the shortcut of the cpolar client in the start menu).

20230428105121

隧道管理Click the button on the left side of the main interface of the client 创建隧道to enter the local tunnel creation page (if you want to create a temporary data tunnel without a 24-hour reset address, you can directly set it here instead of logging in to the cpolar official website to set a blank data tunnel).

On this page, several information settings also need to be made, including:

1. 隧道名称– It can be regarded as the local tunnel information comment of cpolar, which is convenient for us to distinguish the data tunnel established locally;
2. 协议– Since the EasyImage website displays the webpage, the http protocol is selected;
3. 本地地址– The local address is the output port number of the EasyImage website , we have set the output port number to 85, so fill in 85 here;
4. 域名类型– Since we have reserved the data tunnel of the second-level subdomain name in the cpolar cloud, check the "Second-level subdomain name" (if the reserved If the reserved domain name is a custom domain name, check the custom domain name), and Sub Domainfill in the reserved second-level subdomain name in the next column, which is "EasyImageweb" in this example.
If you are creating a temporary data tunnel, just check "Random Domain Name" directly, and the cpolar client will generate the public Internet address by itself;
5. 地区– It is the same as the information reserved in the cpolar cloud, and we can fill it in according to the actual use;

20230428105122

After completing the settings, you can click 创建the button at the bottom of the page to connect the blank data tunnel in the cpolar cloud with the local EasyImage website.

We can manage this data tunnel on the "Tunnel List" page under "Tunnel Management", including opening, closing or deleting this tunnel, or click the "Edit" button to update the information of this data tunnel to modify.

20230428105123

4. Public network access test

Finally, we click the button 状态under the item on the left 在线隧道列表, find the public Internet address of the EasyImage website here, paste this address into the browser, and you can see the local EasyImage website.

20230428105124

20230428105125

5 Conclusion

The picture server is one of the necessary conditions for us to build a website. For the author, being able to put the website server and the picture server together can reduce the pressure of a lot of website maintenance. Moreover, if the EasyImage website is placed locally, it can also make the EasyImage website a private and exclusive image cloud disk. If necessary, the local EasyImage website can also become a picture website of the public Internet, no longer disturbed by the picture bed on the Internet.

Guess you like

Origin blog.csdn.net/2202_75623950/article/details/130703325