Practical guide: Build a light NAS on the Windows platform to achieve private network access to Kedao Cloud private cloud disks through the public network

1 Introduction

As a concept that has emerged in recent years, cloud storage has successfully attracted the attention of major Internet manufacturers. It has also popularized the concept of "centralized storage and separate calls" into the minds of the majority of Internet users. The equipment and software for building centralized data storage centers have also ushered in A wave breaks out. Originally, cloud storage had great development prospects, but the honey operations of major manufacturers directly ruined its development prospects in the field of cloud storage, and instead allowed the development of private data centers and software to enter the fast lane. There are many professional data storage centers, but they are also very expensive. Fortunately, there are also various web-based file management functions that can easily transform our home computers into personal data storage centers. Today, we will introduce to you an online web file manager developed by Chinese people, which can support online management of pictures, playback of music videos, editing and viewing of files, etc., and then combine it with cpolar's intranet penetration data tunnel. It allows us to easily create private cloud disks.

2. Kodcloud website construction

Kedaoyun is a web file manager developed by domestic personnel. It can support functions such as online management of pictures, playing music videos, editing and viewing files, etc., and its operation page is also very friendly, and its operation page is similar to Windows Explorer. The interface is similar and there is no unfamiliarity in using the interface. The most important thing is that, as a web file manager developed by Chinese people, it has perfect support for Chinese.

2.1. Kodcloud download and installation

First, we log in to the official website of Kodcloud ( kodcloud.com/ ) and download the server side of Kodcloud.

20230410134101

After the Kodcloud server is downloaded, unzip it to the web page running environment. The web page running environment I use is Xiaopi Panel, so I place the decompressed kodcloud file in the www folder.

20230410134102

Next, open the "Website" interface of the Xiaopi panel and click the upper left 创建网站button:

  • 域名: Domain name used for local access
  • 端口Web page output port
  • 根目录The location where Kodcloud files are stored
  • 创建环境FTP, database, etc.

After filling in these contents, you can click 确认the button below to create a local webpage of Kedaoyun (remember to turn on the DTP extension of PHP, which can be found in the "Management" item of the corresponding webpage in the Xiaopi panel).

20230410134103

After the web page is created, we enter (or 127.0.0.1:83) in the browser 域名:端口号to open the installation page of the Kedao Cloud server.

20230410134104

Enter the installation page of Kedao Cloud. The software will perform a self-check on the installation environment. Only after the self-check passes can you proceed to the next step.

20230410134105

There is nothing we can set on the database page, just click 确定it. Finally, we set the administrator account and password to complete the installation of Kedaoyun's web server.

20230410134106

2.2 Kodcloud web page test

After completing the installation of the above web program, Kedao Cloud will automatically jump to the user login interface, and we can log in directly.

20230410134107

20230410134108

This step can be seen as a test of whether Kedao Cloud is successfully installed and can be accessed normally. As long as we can log in normally, it means that we have successfully installed Kedao Cloud on the local computer.

Next, we can continue to install Cpolar, and use the intranet penetration data tunnel created by Cpolar to generate a public Internet address for the locally installed Kedao Cloud, allowing us to access various devices on the local computer on the public Internet. kind of documentation.

3. Installation and registration of cpolar intranet penetration

Compared with the page installation of Kedao Cloud Server, the installation of cpolar is much simpler. You can find the button directly on cpolar’s ​​official website page ( www.cpolar.com ) 下载.

20230410134109

The author is using the Windows operating system, so I chose the Windows version to download.

20230410134110

After the Cpolar download is completed, unzip the downloaded file and double-click the decompressed .msi file to automatically execute the installation program. Then just click "Next" to complete the installation.

20230410134111

20230410134112

Because cpolar will create an independent data tunnel for each user, and use user passwords and token codes to ensure data security. Therefore, we need to register before using cpolar. The registration process is also very simple. Just click "User Registration" in the upper right corner of the cpolar homepage and fill in a few necessary information to complete the registration.

20230410134113

20230410134114

4. Local web publishing

At this point, we have completed the local page test of the Kedao Cloud server and installed and registered cpolar. Next, we can start creating an intranet penetration data tunnel and create a public Internet address for the local Kedao Cloud.

4.1 Cpolar cloud settings

What the personal data center emphasizes is long-term stability and accessibility. The author does not want to update the public Internet address settings every day (the data tunnel of the free version of cpolar is reset every 24 hours), so the author upgraded cpolar to the VIP version in order to obtain long-term stability. Existing intranet penetration data tunnel.

To set up a long-term and stable intranet penetration data tunnel, you need to log in to cpolar's official website (the free version does not need to be set up on the cpolar cloud, it can be set up directly on the client), and find the button on the left side of the user's home page, and click to enter 预留cpolar The data tunnel reserved page.

A public Internet address is generated here (can also 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.

20230410134115

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

20230410134116

In the "Reserved second-level subdomain name" field, you need to make several simple settings of information, namely:

  • 地区: The area where the server is located, just select the nearest one
  • 二级域名: will eventually appear in the generated public Internet address as an identifier of the network address
  • 描述: Can be seen as a description of this data tunnel, as long as it can be distinguished from other tunnels

After completing these settings, you can click the "Reserve" button on the right to retain this data tunnel.

20230410134117

Of course, if you no longer plan to use this data tunnel, you can click the "x" on the right to easily delete it and save valuable tunnel quota.

20230410134118

4.2 Cpolar local settings

After completing the settings of the cpolar cloud and retaining the blank data tunnel, you can return to the local cpolar client and connect the blank data tunnel generated in the cloud with the local test page.

Open and log in to the cpolar client locally (you can enter localhost:9200 in the browser to access it directly, or you can click the cpolar client shortcut in the start menu).

20230410134119

Click the "Create Tunnel" button under the "Tunnel Management" item on the left side of the client's main interface to enter the local tunnel creation page (if you want to create a temporary data tunnel that does not reset the address for 24 hours, you can set it up directly here without cpolar The official website sets up a blank data tunnel).

On this page, you also need to make several information settings, which include:

  • 1. 隧道名称– It can be regarded as cpolar’s ​​local tunnel information annotation, as long as it is convenient for us to distinguish;
  • 2. 协议– Since the Kedao Cloud page is in the form of a web page, the http protocol is selected;
  • 3. 本地地址– The local address is the output port number of the local website, so fill in No. 83 here;
  • 4. 域名类型– In this example, we have reserved the data tunnel of the second-level subdomain name in the cpolar cloud, so check “Second-level subdomain name” (if you reserve a custom domain name, check the custom domain name) , and fill in the reserved second-level subdomain name in the "Sub Domain" column on the next line, which is "alipaytest" in this example. If you plan to create a temporary data tunnel, directly check "Random domain name" and let the cpolar client generate the network address by itself;
  • 5. 地区– Just like the information reserved in cpolar cloud, we can fill it in according to the actual place of use;

20230410134120

After completing these settings, you can click the "Create" button at the bottom of the page to connect the blank data tunnel in the cpolar cloud with the local payment test page, which also provides us with a data tunnel that can access the local payment test page on the public Internet. .

We can manage this data tunnel on the page under the item, including opening, closing, or deleting this tunnel. We can also click the "Edit" button to modify the information of this data tunnel 隧道管理.隧道列表

20230410134121

5. Public network access test

Finally, we click the button under the "Status" item on the left 在线隧道列表to find the public Internet address of this page. Paste this address into the browser, we can see the local page, that is, the local page is published to the public Internet. the goal of.

20230410134122

20230410134123

Of course, we can also use the Kedao Cloud client to fill in the public Internet address generated by cpolar 服务器地址and access the local Kedao Cloud server.

6. Conclusion

At this point, we have completed the deployment of Kedao Cloud on the local computer, and used the intranet penetration data tunnel generated by cpolar intranet penetration, so that the door can also access the computer at home (or office) on the public Internet. Conveniently access the required information and files, making our computer truly a private cloud server.

Enter the Internet address 服务器地址and access the local Kedao cloud server.

Reprinted from cpolar pole cloud article: [Light NAS] Windows builds a private cloud disk of Kedao Cloud, and the intranet can penetrate the public network for access

Guess you like

Origin blog.csdn.net/xinhang10/article/details/132890530