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

Native JS realizes compound motion of various motions

This article shares with you a compound motion im...

Example of horizontal arrangement of li tags in HTMl

Most navigation bars are arranged horizontally as...

Some notes on mysql self-join deduplication

Let me briefly explain the functional scenario: T...

Example of using CSS to achieve semi-transparent background and opaque text

This article introduces an example of how to use ...

What are the differences between sql and mysql

What is SQL? SQL is a language used to operate da...

Details of 7 kinds of component communication in Vue3

Table of contents 1. Vue3 component communication...

Mysql dynamically updates the database script example explanation

The specific upgrade script is as follows: Dynami...

MySQL 5.7.17 and workbench installation and configuration graphic tutorial

This article shares the installation and configur...

WebStorm cannot correctly identify the solution of Vue3 combined API

1 Problem Description Vue3's combined API can...

Organize the common knowledge points of CocosCreator

Table of contents 1. Scene loading 2. Find Node 1...

CSS3 achieves various border effects

Translucent border Result: Implementation code: &...

How to use Vue3 asynchronous data loading component suspense

Table of contents Preface Creating Components Sum...

IDEA2020.1.2 Detailed tutorial on creating a web project and configuring Tomcat

This article is an integrated article on how to c...