A few days ago, some students came to ask me how to build a blog like mine, so I specially wrote this series of topics to play cloud server, to help some students who just started.

Purchase cloud server and domain name I use here is Tencent Cloud lightweight application server.

Tencent Cloud student discount is a good deal to buy a server: click to enter the Tencent Cloud student cloud server

Or buy Lighthouse, a lightweight application server

The recent 618 event also had a lot of good models: the 2021 618 Go on the Cloud

It should be noted that if the domain name is to be resolved in the domestic machine after the purchase, the domain name must be put on record.

If you do not want to put on record, do not want to wait for the time of putting on record, want to buy domain name directly after the deployment of blog, you can choose to buy Tencent Cloud Hong Kong lightweight server such overseas machines, the speed is also very fast.

If you prefer a graphical interface, choose the Pagoda panel

Select the appropriate setup command for your system and execute it in SSH

If you prefer the command line and are more concerned with security, you can opt for Junge’s LNMP one-click installation script or OneinStack’s automatic installation script

Here I use the pagoda panel to demonstrate

After successful installation:

You need to be aware of security group Settings

We can see that the pagoda panel uses port 8888, but some cloud server manufacturers may not open this port by default, so we need to release this port in the security group before we can access it

To Tencent cloud background security group to release port 8888, here I directly release all ports. If you are worried, only port 8888 can be allowed

If you don’t want to log into your pagoda account for privacy reasons, you can read my article below

www.wangfuchao.com/645/ After entering the panel, select a suitable environment according to the configuration of your own machine. The 1-core 2g machine can be used as shown in the following figure. If the memory is high, you can change mysql to version 5.7

Installation time varies with machine configuration

Domain name resolution I bought the domain name in Tencent Cloud and resolved it in DNspod

Here I resolve the main domain name to my Tencent cloud server IP

@ indicates the primary domain name. Set the value to the public IP address of the server and select type A.

At this point, we can start building our website

First of all, we went to the wordpress official website to download the program installation package to our own computer, because I used the Tencent Cloud Beijing server Wget to download too slow… So we did a roundabout and downloaded it to our local computer and then uploaded it to our own server

After downloading, we open the pagoda panel.

Click website → Add site

Domain name enter the domain name you just resolved, select MySQL for database, select PHP7.4 for PHP version, and click Submit

Then we go to the root directory of the site, delete all the files inside, upload the wordpress package, unzip it, and put all the decompressed files in the root directory of the site

Finally, as shown in the figure:

Then we will click on the website, click on our website url, select pseudo static, select wordpress from the drop-down list and save it.

If you want your site to be accessed through HTTPS, which is a little lock that appears in the address bar, click SSL and apply for a free certificate.

Visit the website and that’s it

Let’s enter the url of the website, do the final installation and configuration, and just go down

Choose Simplified Chinese

Fill in the database name, user name, and password

Fill in your site information

Well, a blog that belongs to oneself has been built.

You may find that your blog style is different from mine.

Here I recommend a free open source theme, also very good, the address is github.com/Licoy/wordp… The original link: www.wangfuchao.com/1374/