This article mainly from the “preparation of raw materials”, “deployment website” and “website performance tuning” three aspects to explain how to build a good personal website, hoping to help some willing to have a personal website of children’s shoes quickly set up a site.

1. Preparation of raw materials

To build a personal website, you need several raw materials: the domain name, the site source code, and the server.

(1) the domain name

If you buy from GoDaddy or Wan.com, I think goDaddy will be cheaper, but GoDaddy is a foreign domain name service provider. In order to improve the speed of domain name resolution, it is suggested to put the domain name resolution in China, which will be discussed later.

(2) Website source code

Those who can write code and have the energy to build wheels can write their own, while those who are amateurs can consider mature open source solutions. For example, wordpress this build blog nature of the website is better, disCUZ this build forum nature of the website is better.

(3) the server

You can choose to buy independent host or space, independent host is equivalent to providing you with a virtual machine, you can build various environments on it; There are strict limitations on space, such as certain Spaces where only PHP projects can be deployed. To buy independent host, please choose xx cloud. Space I have not bought, you can baidu.

2. Deploy the website

(1) Domain name filing

If the server is in China, it is generally necessary to put on record the domain name. If you buy ali independent host, you can log in ali’s filing system, submit materials step by step as prompted, and then wait for the bureau to review, my several domain name filing is about 10 days. If disrelish put on record trouble, can choose foreign server.

(2) Deploy it on the server software

It is important to note that server software refers to the software used to run the source code of your website. It is a piece of software, whereas a server can be understood as a computer. Generally speaking, to deploy to a server, the following steps are required:

A. Install software required for the operation of website applications, such as database software and HTTP server software, when the server operating system is normal;

B. Configure the HTTP server to map the domain name to your website application directory.

C. Modify the A record of the domain name on the domain name provider, such as GoDaddy, to point the domain name to the external IP address of your server (host).

After these steps, if there are no major problems, your site should be accessible, want to use wordpress to set up a site of children’s shoes can directly refer to the wordpress Chinese site.

3. Website performance tuning

(1) the DNS

DNS (domain name resolution server) provides the mapping service between domain names and IP addresses. If NameServer is in a foreign country, it can be transferred to China. Dnspod (another advertisement), the specific modification of DNS resolution scheme is as follows (domain name resolution changes may need to wait to take effect) :

A. Change the NameServer value of the domain name from the old DNS provider to the NameServer value provided by dnspod.

B. Optional: Add the desired domain name CNAME to dnspod.

(2) the CDN acceleration

CDN is the domain name distribution network, that is, the static resources on your website (such as CSS, JS and IMG, etc.) are distributed to the external server, so that users do not need to request static resources from your server when requesting your website, which can greatly improve the response speed of the website. The most useful or free CDN service provider in China is Qiniu (another advertisement), which means you can distribute static resources on your website to qiniu’s server. If your website is wordpress, there is a special CND plug-in, with quniu CDN use effect is better, can achieve smooth distribution of static resources.

The above.