Hi, I’m crooked.

During the Mid-Autumn Festival, I posted a post called “Finally, I hate my blog all night!!” The article.

www.whywhy.vip/

A lot of friends have asked me about setting up a blog, so let’s write this article and share my experience.

First of all, tell me the general steps of my blog.

  • 1. Buy a server.
  • 2. Find blog templates.
  • 3. Buy a domain name and put it on record.

Then the total cost is 985.8 yuan.

The main part is 811.8 yuan of server money, but I found an old iron, using his invitation link, and then I found a new aliyun number to buy a server, he gave me the cash back.

In fact, the actual cost is 835 yuan, of which the server is the largest, accounting for 660 yuan.

That sounds expensive, but look:

The configuration of 2C4G 3M broadband takes 3 years, my friend.

Three years, 660 yuan, a year is 220 yuan, according to 365 days, only 60 cents a day. Plus, 2024 is a leap year, which is 366 days, a free day.

This wave of rounding is equivalent to no money.

The three-year follow-up fee is slightly more expensive:

But never mind ah, when the time comes to make a new number to buy again three years is not good, do a migration of the blog is also a very simple thing.

The white fuck is really hammered.

The server

All right, let’s digress.

Let’s start with where to buy the server.

What I sell is ali cloud’s server, of course, you can also go to see Huawei cloud, Baidu cloud or Tencent cloud.

What’s more, I don’t have Aliyun cash back here. I didn’t sign up for this activity at that time. It was my negligence. So don’t ask me for an invite link. I don’t have one.

I’ll take Aliyun as an example.

Open the following website:

www.aliyun.com/activity/da…

This is the one I bought:

According to the following configuration, the price is 811.8 yuan:

But the premise is that you have to be a new user of Aliyun to enjoy this price.

The next step is to create an order and purchase it immediately.

Then you can log in ali Cloud console, find the cloud server ECS option, see your public IP:

You can then use a link tool, such as Xshell, to connect to the server for subsequent operations:

Before this step, there should be a process for you to set the account password, you can set it yourself.

The default port for xshell links is 22, so remember to turn this port on in the security group:

Including the blog when you want to build blog related interface need to open, open after restarting the firewall, no further details.

Select blog Template

Now we have a server, just need to put their own blog on the server on the line.

But what template to choose?

Some of the best known are WordPress, Hexo, Jekyll, Halo, etc.

I even bought ali cloud server there is a ready-made WordPress blog tutorial, follow the tutorial step by step operation can be:

But I ended up with a Halo blog.

halo.run/

Because its quick start feature is so fast, it’s really quick to open the fucking door, it’s almost home. I’m almost clapping my hands.

For example, under the Windows system, I only need to download their JAR package, and then directly run, local access.

However, as of 1.4.3, Halo’s minimum supported JRE version is 11, so if you can’t run it locally, please upgrade.

Then you go to http://127.0.0.1:8090, which is the blog address.

Visit http://127.0.0.1:8090/admin’s blog management background, the article published, theme optimization of what is inside the management background.

It’s really out of the box.

The first time I tried it, it took less than a minute to build it.

The decision was made immediately, and it was halo.

You can also try it locally, see if it impresses you.

Then you can try out the theme feature locally. There are only 22 open source themes, but it’s a good idea to basically pick one of your own.

The only fly in the ointment is that after all, it is the theme encapsulated by others, there must be some of their own dislike. If you want to reinvent yourself, you need some front-end skills.

However, it is already a white piao, what bicycle ah, run again.

In fact, in the local can run, build a blog is a set of things to the server, there is no very difficult place.

Throwing the blog jar onto the server to do this is clearly stated in halo’s official documentation.

Docs. Halo. The run/useful/install /…

I chose the Linux approach:

It’s hand-to-hand dumb-ass teaching, where everything is written down for you.

Just a reminder of this place, security group, security group, security group:

In addition, I found this amazing place:

I didn’t realize it before, but when I was writing this article, I saw it, clicked on it, and I was stunned.

This is interactive teaching! This is awesome!

According to the official introduction, Halo is a partnership with Tencent Cloud, so here is an interactive tutorial for you to check out:

Well, even if you don’t want to do this interactive tutorial, here’s the ultimate operation:

Docs. Halo. The run/install/pre…

Either way, where to buy is not to buy, buy at Halo and become a party, comfortable.

Oh, right.

The default database for Halo is H2, for reasons explained here:

bbs.halo.run/d/17-halo

I think what he said is very reasonable, but I still choose MySQL, after all, know the root of the matter, with some heart stability.

For details on how to install MySQL on a Linux server, see:

How to create a MySQL server:

Online tutorials are also quite many, I will not repeat.

The domain name registration

Domain name filing. You have to have a domain name for this thing.

My domain name is bought here:

wanwang.aliyun.com/domain

Domain name has expensive have cheap, my cheap, bought three years, 100 yuan money.

It’s a VIP ending, but I don’t need a bike for that price.

I’d like to buy the com ending, but price drives me away, poverty keeps me awake:

So, the domain name depends on what you want, generally not too expensive.

Next is ICP record.

The purpose of filing is to get this:

This thing is very important, without the word that put on record, you force domain name to hang up, be harmonious for a while.

ICP filing is actually a very simple process, but it takes a long time.

It took me nine days to file:

After the domain name registration is completed, you can go to the domain name resolution place, bind your domain name to the public IP address, and complete the work:

You can switch from IP and port access to domain name access mode.

Figure bed

One last word about the bed.

What is a picture bed?

For example, if everyone is writing in Markdown format, how do you insert an image?

This is the syntax:! [](https://xxxx.png)

So the question is where does xxxx.png come from?

I used to be the map bed of White whoring Blog garden, which is to upload pictures to its article editing page when writing articles, which is equivalent to uploading pictures to its server.

Once written, it can be selected, copied and pasted to any other platform.

However, there was a period of time when I found that the pictures of the blog garden would be unstable, and all the pictures could not be opened when I visited the articles.

So I went to the white piao gold digger chart bed, and later found that the gold digger pictures added watermark by default, if transported to other platforms, the watermark will also take the default.

I had no choice, so I spent a little time building a map bed server myself.

In fact, I wanted to do it a long time ago, but I always felt troublesome, so I didn’t do it when I was lazy.

For the first dozens of articles, I wrote them directly on the editing page of my wechat official account, and then transferred them to other platforms. Wechat pictures are added anti-theft chain, so I can not directly copy and paste, I will go to the handling.

Ah, now I think it is a big detour on the way of creation.

Should have made the drawing bed from the very beginning, there would have been no such thing.

My graph bed uses the object storage of Tencent Cloud and charges by data. The following is my monthly consumption on graph bed, which is generally very cheap:

Of course, you can also go to buy seven niu Tu bed, Ali Cloud OSS, and take cloud map bed these, the choice of face is also very rich.

After buying a chart bed, you can download a software called PicGo and configure it according to the corresponding parameters of the chart bed you bought.

There are a lot of tutorials on PicGo that you can check out. It’s just a little tool. It’s not complicated.

Management background

Finally, I want to show you what halo does in the admin background.

First came a dashboard:

Here you can see some data about the blog.

Next comes the position of the post button:

When writing articles, it is also in Markdown format:

In fact, these are the core functions, the other is a theme selection function:

Here you can install your favorite themes.

All right, that’s about it.

Have a good time.