Xiao Bian Note: Double 11 to buy half of the sun lost, # # Sun single contest hot strikes, smashed hands have opened a box! IPhoneX etiquette waiting for you to win, submissions that get extra 100 gold coins, as well as original innovators exclusive rewards, App can light submission, details poke here.

Foreword

Today's ribs teach students who haven’t used a blog a simple, easy-to-use, good-looking blog.

What is a blog? Also do not know the blog's Internet users exist? Blog is online diary / article or something, generally belongs to the individual. Zhang Aunt was originally an ordinary blog, started from the release of 3C good price broke the news.

Ordinary netizens like to write something, but they are too lazy to write long, so Weibo is out of this kind of thing.
Want to send originals to your mom? Is it better to start writing from your own blog?

Required Materials 1. One of the x86 CPU's group DSM.

Currently only X86 CPU's Synology DSM (version 5.2+) comes with the Docker Kit. Installing with Web Station may require a manual change of nginx.conf, which is too much trouble.
The basic use of group Hui does not introduce this article.

2. Public network IP one.

The cat/host route needs to forward the group's blog port to the public IP address. There is no public network IP to use the intranet penetration solution.
Port forwarding and intranet penetration are not described in this article.

3. Blog system file zip one.

Spare ribs Here is a recommended blog system for people from China. Typecho. Installation file Download link Password: 7w34

4. One domain name.

If there is a first-level domain name is the best, if not, you can use a free secondary domain name such as 3322.
This is not an introduction to the domain name application and setting.

5. One SSL certificate

Ma Hua Teng Yun or Ma Yun provide free one-year SSL certificate applications. This article uses the nginx version of the certificate provided by Ma Huateng cloud.
SSL certificate application method is not described in this article.

Setting up the Typecho runtime environment with Docker 1. Where do the blog files go?

Select or create a folder in the File Station as the storage area for the Typecho program and data. For example, the following figure

2. Decompression

Upload the previously downloaded typecho.zip to the folder where Typecho is stored. Right-click the file and select Unzip. Unzip to get the and delete the typecho.zip

3. Install Docker

Install Docker from Synology DSM's Suite Center

4. Download the nginx image

Open Docker, search for cuteribs in the registry Download nginx-php-sqlite image

5. Create a container

In the image, select the nginx-php-sqlite image you just downloaded, click Start, open the Create Container window, and click Advanced Settings.

6. Set the loading path

In the advanced settings, select the volume, add the folder, select the typecho folder in step 1, and write the load path as /data.

7. Set the port

Then select the port setting and set the local port for Typecho. By default, 80/443 is occupied by Photo Station. Click OK to save the advanced settings when finished.

8. The Docker container finishes

Then check the settings in the next step. Click Apply to finish creating the container. If the container starts to run, it means the build is successful.

9. Failed to download the image?

If the download image in step 4 is unsuccessful, you can add Alibaba Cloud's image library by the following method, and then select the newly added repository point to use. Then search the computeribs to download the nginx-php-sqlite image.

Typecho installation configuration
1. Enter Typecho for the first time.

After the above steps are completed, enter the group IP's IP plus port number in the browser and it will automatically enter the installation page (install.php). As shown below:

2. Configure the database and administrator account

Here we use the sqlite database is basically zero configuration, Typecho automatically configured for us. We only need to set the administrator account and password to confirm.

3. The installation is successful!

Seeing this page indicates that we have completed the installation of Typecho. Your blog system is up and running!

4. Possible problems

If you see this error after confirming step 2, it means that Typecho does not have enough permissions to write to the database file. We need to manually set the permissions of the Right-click on the , select Properties, then Permissions, click Edit after Everyone, and set permissions for Everyone as shown in the figure below.

If the user or group is grayed out, select Inheritance permissions in Advanced Options.

After the completion of the database configuration should be able to continue.

Get started with Typecho 1. Enter the Typecho homepage again

This will no longer be forced to the install.php installation page. You will see a super easy blog home page as shown below.

2. Login into the background

3. Use background management

Going to the background will first of all see the website summary. We will go through the sequence in Figure 1 2 3 4 .

4. Basic settings

In the top menu choose Settings -> Basic, change the site name and site description. Quotation marks are not actually available...

5. I am the appearance party

From the top menu, select Console -> Appearance, and you will see Typecho Replica Theme that comes with Typecho and the Pinghsu Theme like ribs (you're sure to be a fucking party again). Enable Pinghsu.

After enabling, click to set the appearance. The ribs suggest to enable these options in the figure below.
6. More intuitive editor plugin

Ribs for everyone to prepare an editor plugin called EditorMD, you can preview the effect while writing articles. Need to be enabled from the console -> plugin here.

7. The first post

Typecho uses the Markdown syntax, which is a very simple and powerful formatting syntax. You can add formatting to your text just like writing punctuation marks. In short, it's very obscure stuff for yourself. Baidu. ?

The final display of the article is controlled by the appearance of Typecho (theme template). There are many other themes on https://typecho.me/.

Add domain name and SSL certificate 1. Add domain name

Add an A record to the IP address of your home in the domain name resolution record. The type of ribs this time added is typecho.cuteribs.tk, the IP is 218.82.36.15. (You must have changed when you see it) and then visit http://typecho .cuteribs.tk:22080/ See if I can open my blog?

2. Prepare the certificate

In the qcloud domain typecho.cuteribs.tk apply for a SSL certificate. After the audit is complete download the certificate package, we need to use the two files in the package nginx folder.

3. Place the certificate file

Create a new crt folder under the typecho folder, rename the two certificate files (certificate and private key) to site.crt and site.key, and upload them to the crt folder.

4. Modify site address

Change the site address in the Typecho backend basic settings to https://typecho.cuteribs.tk:22443


5. Restart the Docker container

6. Complete

Visit https://typecho.cuteribs.tk:22443 and start your security blog tour.

to sum up

I hope that the students who have read this article will be able to set up a blog on their own group. It may be difficult for many people to use the domain name and the SSL part. Because the domain name and the SSL part are not the focus, and it is not clear at once.

This article's blog construction method is also applicable to VPS, but it can not be zero code, and it needs linux basics.

This article does not introduce the contents of the ribs will be specially written to teach everyone how to apply for free first- and second-level domain names, how to set up a free dynamic domain name updates, how to apply for a free SSL certificate. All free of money, at most cost you A bit of gold coins for a silver foal.

Come here first.


Docker new products that support Docker:


PCB Push Wire Connectors

Pcb Push Wire Connectors,Multipolar Wire Connectors,Board Connector,Smd Connector

Jiangmen Krealux Electrical Appliances Co.,Ltd. , https://www.krealux-online.com