It's so easy to develop an entire dedicated network disk with the cloud!

It's so easy to develop an entire dedicated network disk with the cloud!

I believe that many students have wanted to deploy their own personal network disks, but do not want to rent a server, worry about environment construction, and various complicated operation and maintenance tasks.

Now, with the birth of cloud hosting, the establishment of personal network disks has become so easy. It only takes a few steps, and the deployment is completed with one click. Soon! Here is a detailed introduction to the deployment process:

Cloud hosting (Tencent CloudBase Run) is a new generation of cloud native application engine (App Engine 2.0) provided by cloud development (Tencent CloudBase, TCB), which supports hosting any containerized applications.

Ready to work

Open CloudBase cloud development environment


-Cloud hosting cannot be activated in a yearly and monthly subscription environment.

-Currently, the environment whose source is "WeChat Mini Program" does not support cloud hosting.

Step 1: Activate

Log in to the cloud development CloudBase console, select an environment, enter the cloud hosting management page, and click "Activate Now".

Step 2: Configure cloud hosting


Currently, cloud hosting has opened the Shanghai and Guangzhou regions, and more regions will be opened one after another.

Cloud hosting network

Network settings include private network VPC and subnet. Taking the environment as the dimension, all services created in the cloud hosting will be deployed in the same VPC, and the network settings cannot be changed after the cloud hosting is successfully activated.

The network settings are divided into the following two modes:

System default configuration

Cloud hosting will automatically create a VPC and subnet for you, and bind it to your current cloud development environment.

All subsequent services created in the cloud hosting in the current environment will be deployed to this VPC and subnet.

This process does not require you to manually set any settings. Later, you can view and manage this VPC and subnet automatically created by cloud hosting in the private network console, or you can deploy more cloud resources (such as cloud servers, cloud databases, etc.) in this VPC to facilitate these cloud resources To interact.

Custom configuration

If you have created a private network VPC and subnet before, and have deployed other cloud resources (such as cloud servers, cloud databases, etc.) in it, and you need your cloud hosting application to interact with these existing cloud resources, you You can choose "Custom Configuration", and then select a specific VPC and subnet.

Only one VPC can be selected, and multiple subnets can be selected.

Successfully opened

Click "Submit", the status will change to active , please wait a few seconds.

After successful activation, you will automatically be redirected to the cloud hosting service list page.

At this point, you have successfully activated the cloud hosting service, you can click "New Service" to start deploying our cloud storage.

New service

Click "New Service", fill in the service name, remarks (optional), and click "Submit".

Create a file named kodexplorernew directory, and go to this directory:

mkdir kodexplorer
cd kodexplorer

Create a named Dockerfilefile, the following code (can be adjusted according to their needs) and paste into it:

FROM php:7.3-apache

ENV Koddownload_URL
##Download kodexplorer
RUN apt-get update && apt-get install -y --no-install-recommends unzip ca-certificates wget/
    && wget -q -O/var/www/ ${Koddownload_URL}/
    && unzip -q/var/www/ -d/var/www/html/ 
    && rm -rf/var/cache/apk/* && rm -rf/var/lib/apt/lists/* 
##Install related extensions
RUN apt-get update && apt-get install -y/
  && docker-php-ext-install -j$(nproc) iconv/
  && docker-php-ext-configure gd --with-freetype-dir=/usr/include/--with-jpeg-dir=/usr/include//
  && docker-php-ext-install -j$(nproc) gd/
  && docker-php-ext-install exif/
  && docker-php-ext-configure exif --enable-exif/
  && docker-php-ext-install pdo pdo_mysql/
  && cd/usr/local/bin && ./docker-php-ext-install mysqli/
  && rm -rf/var/cache/apk/*
##file permission
RUN chmod -R 777/var/www/html/
##Work list
##Declare the port

Deploy to cloud hosting

After entering the service, click "New Version", follow the steps in the figure, and click "Start Deployment" (the deployment time may take 5-10 minutes).

After the deployment is complete, click the "Service Configuration" above, click "Path", and modify it to/

Return to the version list, click "Access Service", you can jump to the network disk configuration page

Follow the prompts and click Next to go to the database configuration page

Note: To use the Mysql database, you need to set the Tencent Cloud Mysql database under the same private network as the cloud hosting. The same applies to other types of databases.

After configuring the database, click OK, go to account settings, and log in to access the network disk interface after setting:

That's it!


The above is the method of using cloud hosting to quickly deploy a personal network disk. The entire deployment process is simple and fast. Come and give it a try!

Author: Doggy, Tencent and so open channel publishing division.

product description

Cloud Development (Tencent CloudBase, TCB) is a cloud-native integrated development environment and tool platform provided by Tencent Cloud. It provides developers with highly available, automatically and elastically scalable back-end cloud services, including serverless capabilities such as computing, storage, and hosting. , Can be used for cloud integration to develop a variety of end applications (small programs, official accounts, web applications, Flutter clients, etc.) to help developers build and manage back-end services and cloud resources in a unified manner, avoiding cumbersome servers in the application development process With construction and operation and maintenance, developers can focus on the realization of business logic, with lower development thresholds and higher efficiency.

Open cloud development: <>

Product documentation: <>

Technical documentation: <>

Technical exchange plus Q group: 601134960

For the latest information, follow the WeChat public account [Tencent Cloud Development]

Reference: Using the cloud to develop an entire dedicated network disk is so easy! -Cloud + Community-Tencent Cloud