How to configure Hexo and GitHub to bind a custom domain name under Windows 10

How to configure Hexo and GitHub to bind a custom domain name under Windows 10

Hexo binds a custom domain name to GitHub under Windows 10

So first we need to buy a domain name

Then we can choose what type of server to buy here. Mine is Tencent Cloud Student's (hehe)

Tencent Cloud Student Server

Optional operating system

insert image description here

After purchase, some configuration is required and then search in the cloud product

insert image description here

Click to resolve domain name resolution

Get yourname.github.io ip address

insert image description here

If you are a new member, just follow the prompts.

insert image description here

OK After the settings are completed here, modify it on GitHub

GitHub Link

Enter your own repository on GitHub

insert image description here

Find settings

insert image description here

Scroll down to find GitHub Pages/ Custom domain and enter your domain name

insert image description here

OK Set CNAME

In the local hexo project, create a CNAME file in the source directory (note that after you edit, remove the suffix: for example: .txt .md) CNAME (no suffix is ​​required) Enter your domain name in it, for example: xxx.cn or xxx.com | xxx.vip, etc.

insert image description here

Now that it is configured, you can try

Summarize

The above is the configuration method of binding Hexo and GitHub to a custom domain name under Windows 10 introduced by the editor. I hope it will be helpful to everyone. If you have any questions, please leave me a message and the editor will reply to you in time. I would also like to thank everyone for their support of the 123WORDPRESS.COM website!
If you find this article helpful, please feel free to reprint it and please indicate the source. Thank you!

You may also be interested in:
  • How to use PHP custom function to obtain the first-level domain name in the URL

<<:  js realizes the magnifying glass function of shopping website

>>:  Analysis of mysql view functions and usage examples

Recommend

A brief analysis of MySQL's WriteSet parallel replication

【Historical Background】 I have been working as a ...

js realizes packaging multiple pictures into zip

Table of contents 1. Import files 2. HTML page 3....

Implementation of running SQL Server using Docker

Now .net core is cross-platform, and everyone is ...

Solutions to problems using addRoutes in Vue projects

Table of contents Preface 1. 404 Page 1. Causes 2...

Introduction to commonly used MySQL commands in Linux environment

Enter the mysql command: mysql -u+(user name) -p+...

Commonly used js function methods in the front end

Table of contents 1. Email 2. Mobile phone number...

jQuery realizes dynamic particle effect

This article shares the specific code of jQuery t...

JavaScript implements class lottery applet

This article shares the specific code of JavaScri...

A Brief Analysis of MySQL PHP Syntax

Let's first look at the basic syntax of the c...

Detailed explanation of how to use join to optimize SQL in MySQL

0. Prepare relevant tables for the following test...

Use Nginx to build a streaming media server to realize live broadcast function

Written in front In recent years, the live stream...

JavaScript to implement random roll call web page

JavaScript writes a random roll call webpage for ...

Vue realizes the function of book shopping cart

This article example shares the specific code of ...

Markup Language - Anchor

Previous: Markup Language - Phrase Elements Origin...

Detailed explanation of Shell script control docker container startup order

1. Problems encountered In the process of distrib...