Hexo+GitHub+Cloudflare搭建免费个人博客网站教程

Hexo+GitHub+Cloudflare搭建免费个人博客网站教程

𝓓𝓸𝓷 Lv6
一、搭建网站步骤

github是一个代码托管网站,它提供了一项github pages服务,这个服务可以将我们托管在github上网页代码生成一个静态网页,然后通过https://username.github.io访问自己的网页,每个帐号只有一个github pages服务

  1. 本地安装Git
  2. 在本地搭建Hexo,并生成Hexo静态网页
  3. 注册GitHub,并创建代码仓库
  4. 将本地Hexo代码推送至GitHub仓库
  5. 访问GitHub域名,即生成自己的网站
二、本地安装Hexo
1.安装GIT

https://git-scm.com/download/win

image-20240615205823888

下载后安装一路Next,一路向西直至完成安装

image-20240702094907220

image-20240702095103952

image-20240702095122731

恭喜完成修仙第一步,元气期大功造成,接下来打开cmd命令窗口,验证一下成果吧

image-20240615210740489

也可以在桌面点击鼠标右键,在右键菜单中选择Open Git Bash here

image-20240702100702554

image-20240702101341853

安装完成后,还需要进行一些初始化操作,在CMDGit Bash命令行界面中,执行如下命令配置用户名和邮箱

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
git config --global user.name "用户名"
git config --global user.email "邮箱地址"

C:\Users\admin>git config --global user.name git
C:\Users\admin>git config --global user.email 123456@msn.com

C:\Users\admin>git config --list
diff.astextplain.textconv=astextplain
filter.lfs.clean=git-lfs clean -- %f
filter.lfs.smudge=git-lfs smudge -- %f
filter.lfs.process=git-lfs filter-process
filter.lfs.required=true
http.sslbackend=openssl
http.sslcainfo=C:/Program Files/Git/mingw64/etc/ssl/certs/ca-bundle.crt
core.autocrlf=true
core.fscache=true
core.symlinks=false
pull.rebase=false
credential.helper=manager
credential.https://dev.azure.com.usehttppath=true
init.defaultbranch=master
user.name=git
user.email=123456@msn.com
2.安装Node.js

https://nodejs.org/en/download/prebuilt-installer

image-20240615211245122

下载后像安装Git一样,一路Next,一路顺风顺水直至完成安装,然后打开命令窗口执行如下命令校验安装

image-20240615211625243

3.安装Hexo

安装Hexo使用npm方式安装npm install -g hexo-cli

image-20240615212344921

安装完后选择一个位置用来存放网站文件,本次选择C:\Users\admin下的hexo文件夹,执行以下命令

1
2
3
4
5
6
7
8
9
10
11
(1)初始化目录
hexo init hexo

(2)进入hexo目录
cd hexo

(3)安装Hexo
npm install

(4)启动Hexo服务
hexo server

image-20240615213953664

image-20240615214429358

4.访问hexo网站

http://localhost:4000/

image-20240615214228728

如果不喜欢4000端口或端口被占用可以使用-p指定别的端口hexo clean && hexo g & hexo s -p 8000

5.Hexo启动命令详解
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
(1)hexo g或hexo generate
该命令执行后创建文章并在hexo站点根目录下生成public文件夹

(2)hexo clean
清理public文件夹删除

(3)hexo s或hexo server
启动Hexo服务, 默认本地网站地址: http://localhost:4000

(4)hexo d或hexo deploy
部署站点,在本地生成.deploy_git文件夹,按照_config.yml配置文件中deploy参数指定的路径,上传文件

(5)hexo new myblog 或 hex n myblog
在默认路径source\_posts下生成一篇标题名为myblog的文章,进入该目录,打开myblog.md编辑书写文章
C:\Users\admin>cd hexo
C:\Users\admin\hexo>hexo n myblog
INFO Validating config
INFO Created: ~\hexo\source\_posts\myblog.md

(6)删除文件
在source/_posts文件夹中手工删除不需要的目录或文件,然后执行hexe clean. hexo g hexo s更新记录

(7)批量执行启动或部署命令
hexo clean && hexo g & hexo s
hexo clean && hexo g & hexo d

执行Hexo命令,必须先cd hexo进入hexo站点目录才能执行

6.Hexo更换主题

image-20240702161032489

image-20240702161713065

  • 克隆主题

C:\Users\admin>cd hexo
C:\Users\admin\hexo>git clone https://github.com/fluid-dev/hexo-theme-fluid.git themes/fluid
克隆完主题后,在站点目录hexo下的themes文件夹下会生成一个fluid主题

image-20240702164538480

image-20240702162021738

  • 修改Hexo配置文件C:\Users\admin\hexo\_config.yml中默认主题为 fluid,保存

image-20240702162836961

image-20240702164756158

7.备份恢复站点
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
(1)备份
备份除站点hexo目录下.gitignore中记录的文件之外的文件即可,即.gitignore中记录的文件不需要备份。

.DS_Store
Thumbs.db
db.json
*.log
node_modules/
public/
.deploy*/
_multiconfig.yml

(2)恢复
重新安装Hexo,然后将备份文件复制至站点Hexo目录,生成新的SSH公钥并添加至GitHub,最后执行hexo clean && hexo g & hexo s

1.删除C:\Users\admin\hexo下所有文件
2.npm安装hexo: npm install hexo --save
3.将备份内容(除.git以外)解压至C:\Users\a下dmin\hexo下
4.克隆redefine主题: git clone https://github.com/EvanNotFound/hexo-theme-redefine.git themes/redefine
5.启动hexo: hexo clean && hexo g && hexo s


(3)push文件至远程仓库,报错的处理方法
C:\Users\admin\hexo>git init
Initialized empty Git repository in C:/Users/admin/hexo/.git/

C:\Users\admin\hexo>git add .

C:\Users\admin\hexo>git commit -m "hexo"

C:\Users\admin\hexo>git push -u origin main
error: src refspec main does not match any
error: failed to push some refs to 'github.com:soxo/soxo.github.io.git'

C:\Users\admin\hexo>git remote -v
origin git@github.com:soxo/soxo.github.io.git (fetch)
origin git@github.com:soxo/soxo.github.io.git (push)

C:\Users\admin\hexo>git branch
* master

C:\Users\admin\hexo>git checkout -b main
Switched to a new branch 'main'

C:\Users\admin\hexo>git branch
* main
master

C:\Users\admin\hexo>git branch -d master
Deleted branch master (was 1e6d178).

C:\Users\admin\hexo>git branch
* main

C:\Users\admin\hexo>git push -u origin master:main
git@github.com: Permission denied (publickey).
fatal: Could not read from remote repository.

C:\Users\admin\hexo>more ..\.ssh\config
Host soxo.github.com
HostName github.com
User git
IdentityFile ~/.ssh/id_rsa_soxo

C:\Users\admin\hexo>git remote set-url origin git@soxo.github.com:soxo/soxo.github.io.git

C:\Users\admin\hexo>git remote -v
origin git@soxo.github.com:soxo/soxo.github.io.git (fetch)
origin git@soxo.github.com:soxo/soxo.github.io.git (push)

C:\Users\admin\hexo>git push -u origin main
To soxo.github.com:soxo/soxo.github.io.git
! [rejected] main -> main (fetch first)
error: failed to push some refs to 'soxo.github.com:soxo/soxo.github.io.git'
hint: Updates were rejected because the remote contains work that you do not
hint: have locally. This is usually caused by another repository pushing to
hint: the same ref. If you want to integrate the remote changes, use
hint: 'git pull' before pushing again.
hint: See the 'Note about fast-forwards' in 'git push --help' for details.


C:\Users\admin\hexo>git pull origin main
remote: Enumerating objects: 321, done.
remote: Counting objects: 100% (319/319), done.
remote: Compressing objects: 100% (152/152), done.
remote: Total 321 (delta 149), reused 298 (delta 143), pack-reused 2
Receiving objects: 100% (321/321), 15.25 MiB | 26.00 KiB/s, done.
Resolving deltas: 100% (149/149), done.
From soxo.github.com:soxo/soxo.github.io
* branch main -> FETCH_HEAD
* [new branch] main -> origin/main
fatal: refusing to merge unrelated histories

C:\Users\admin\hexo>git branch -r
origin/main

C:\Users\admin\hexo>git push origin --delete main
To soxo.github.com:soxo/soxo.github.io.git
- [deleted] main

C:\Users\admin\hexo>git branch -r

C:\Users\admin\hexo>git branch
* main

C:\Users\admin\hexo>git push -u origin main
Enumerating objects: 76, done.
Counting objects: 100% (76/76), done.
Delta compression using up to 16 threads
Compressing objects: 100% (62/62), done.
Writing objects: 100% (76/76), 107.82 KiB | 322.00 KiB/s, done.
Total 76 (delta 8), reused 44 (delta 1), pack-reused 0 (from 0)
remote: Resolving deltas: 100% (8/8), done.
remote:
remote: Create a pull request for 'main' on GitHub by visiting:
remote: https://github.com/soxo/soxo.github.io/pull/new/main
remote:
To soxo.github.com:soxo/soxo.github.io.git
* [new branch] main -> main
branch 'main' set up to track 'origin/main'.
三、注册并配置GitHub
1.注册GitHUB

https://github.com/,打开官网,点击右上角Sign up,填写邮箱、密码、用户名点击Continue进行注册,注册邮件会收到验证码,填入验证码注册即可

image-20240702171123515

image-20240702172535995

image-20240702172841609

image-20240702173217651

image-20240702174752090

image-20240702173449542

image-20240702180412508

image-20240702180136568

2.创建Repository仓库

点击Create repository创建github仓库,或者点击右侧头像,在下拉菜单选择your repositories, 在弹出的页面点击New按钮创建repository仓库

image-20240702180859461

image-20240702181456851

image-20240702181311994

image-20240702181753049

注意: Repository name必须是注册github的用户名.github.io, 即hexohub.github.io, 填写其它内容最终都无法打开网页, 这是github统一格式

image-20240702182401701

复制上方两段代码备用

3.配置分支

点击右侧头像,在下拉菜单选择your repositories, 点击hexohub.github.io链接进入仓库界面, 点击上方设置

image-20240702183650754

1
2
3
4
5
6
7
8
9
10
11
12
echo "# hexohub.github.io" >> README.md
git init
git add README.md
git commit -m "first commit"
git branch -M main
git remote add origin https://github.com/hexohub/hexohub.github.io.git
git push -u origin main


git remote add origin https://github.com/hexohub/hexohub.github.io.git
git branch -M main
git push -u origin main

image-20240702184230782

image-20240702184656352

4.创建、删除、查看分支基本操作
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
除了默认的main分区外,也可以自己创建gh-pages分支用于存放网站内容:
(1)创建分支
git branch gh-pages # 创建本地分支
git checkout gh-pages # 切换分支
git checkout -b gh-pages # 创建并切换到新创建的分支
git remote remove origin # 删除远程仓库地址信息
git remote add origin git@github.com:hexohub/hexohub.github.io.git #添加远程仓库地址信息
git push -u origin gh-pages #推送分支到GitHub仓库
git push origin --delete gh-pages #删除远程分支,删除操作不可逆转

(2)查看分支
git branch -a # 查看所有分支
git branch -av # 查看详细分支信息
git branch -r # 查看远程分支

(3)删除本地分支
git branch -d

(4)删除远程分支
git push origin --delete gh-pages

C:\Users\admin\hexo>git push origin --delete gh-pages
error: unable to delete 'gh-pages': remote ref does not exist
error: failed to push some refs to 'github.com:hexohub/hexohub.github.io.

remote ref does not exist这个错误提示说明远程分支已删除,git branch -av还能看到,是因为git fetch保存到本地的缓存信息还在。

C:\Users\admin\hexo>git fetch --prune origin # 或者执行git fetch --p origin

(5)删除远程分支里面的文件夹,不删除分支
C:\Users\admin\hexo>git rm -r --cached themes
rm 'themes/.gitkeep'
rm 'themes/readme'
rm 'themes/redefine'

(6)删除本地和远程分支里面的文件或文件夹,不删除分支
---删除本地和远程分支文件
C:\Users\admin\hexo>git rm filename

---删除本地和远程分支文件夹
git rm -r directoryname

(6)查看远程仓库地址
#该命令会列出所有已配置的远程仓库的名称和URL
git remote -v

# 添加远程仓库
git remote add <remote-name> <remote-url>

C:\Users\admin\hexo>git remote -v
origin git@13888.github.com:hexohub/hexohub.github.io.git (fetch)
origin git@13888.github.com:hexohub/hexohub.github.io.git (push)

C:\Users\admin\hexo>git remote add soxo.github.io git@soxo.github.com:soxo/soxo.github.io.git

C:\Users\admin\hexo>git remote -v
origin git@13888.github.com:hexohub/hexohub.github.io.git (fetch)
origin git@13888.github.com:hexohub/hexohub.github.io.git (push)
soxo.github.io git@soxo.github.com:soxo/soxo.github.io.git (fetch)
soxo.github.io git@soxo.github.com:soxo/soxo.github.io.git (push)

C:\Users\admin\hexo>git push -u soxo.github.io main


# 删除远程仓库
git remote remove <remote-name>

C:\Users\admin\hexo>git remote -v
origin git@13888.github.com:hexohub/hexohub.github.io.git (fetch)
origin git@13888.github.com:hexohub/hexohub.github.io.git (push)
soxo.github.io git@soxo.github.com:soxo/soxo.github.io.git (fetch)
soxo.github.io git@soxo.github.com:soxo/soxo.github.io.git (push)


C:\Users\admin\hexo>git remote remove soxo.github.io

C:\Users\admin\hexo>git remote -v
origin git@13888.github.com:hexohub/hexohub.github.io.git (fetch)
origin git@13888.github.com:hexohub/hexohub.github.io.git (push)

C:\Users\admin\hexo>git remote remove origin

C:\Users\admin\hexo>git remote -v
origin

C:\Users\admin\hexo>git remote add origin git@soxo.github.com:soxo/soxo.github.io.git

C:\Users\admin\hexo>git remote -v
origin git@soxo.github.com:soxo/soxo.github.io.git (fetch)
origin git@soxo.github.com:soxo/soxo.github.io.git (push)

C:\Users\admin\hexo>git push -u origin main
branch 'main' set up to track 'origin/main'.
Everything up-to-date

C:\Users\admin\hexo>git add .

C:\Users\admin\hexo>git commit -m "hexo"

C:\Users\admin\hexo>git push -u origin main


# 显示每个远程分支的引用信息
C:\Users\admin\hexo>git ls-remote
From git@soxo.github.com:soxo/soxo.github.io.git
40eb5e1b5ec11f878c823dc4806efad4c68730bd HEAD
40eb5e1b5ec11f878c823dc4806efad4c68730bd refs/heads/gp-pages
03ed3de1172965883adc6e612a0c6aeb70eadf61 refs/heads/main

# 显示远程仓库的详细信息
C:\Users\admin\hexo>git remote show origin
* remote origin
Fetch URL: git@soxo.github.com:soxo/soxo.github.io.git
Push URL: git@soxo.github.com:soxo/soxo.github.io.git
HEAD branch: gp-pages
Remote branches:
gp-pages new (next fetch will store in remotes/origin)
main tracked
Local branch configured for 'git pull':
main merges with remote main
Local ref configured for 'git push':
main pushes to main (up to date)


# 修改远程仓库URL
git remote set-url <remote-name> <new-remote-url>


这里 <remote-name> 是您要操作的远程仓库的名称,通常默认为 origin。 <remote-url> 是远程仓库的URL地址。 <new-remote-url> 是远程仓库的新地址。
例如,如果您想要添加一个新的远程仓库并命名为 upstream,URL为 https://github.com/upstream/repo.git,您可以使用:
git remote add upstream https://github.com/upstream/repo.git
如果您想要将 origin 远程仓库的URL更改为一个新的地址,比如 https://github.com/newuser/newrepo.git,您可以使用:
git remote set-url origin https://github.com/newuser/newrepo.git
最后,如果您想要删除名为 upstream 的远程仓库,可以使用:
git remote remove upstream


(7)删除示例
C:\Users\admin\hexo>git branch -a
* gh-pages
main
remotes/origin/main

# 删除分区前,需切换当前分区到主分区
C:\Users\admin\hexo>git checkout main
M _config.yml
M source/_posts/python/python3-installation.md
M source/_posts/script/hexo-deploy-github.md
M source/css/custom_style.css
D themes/tomotoes
Switched to branch 'main'

C:\Users\admin\hexo>git branch -a
gh-pages
* main
remotes/origin/main

C:\Users\admin\hexo>git branch -d gh-pages
Deleted branch gh-pages (was 9661ac3).

C:\Users\admin\hexo>git branch -a
* main
remotes/origin/main


C:\Users\admin\hexo>git branch -a
* main
remotes/origin/main

C:\Users\admin\hexo>git branch -d remotes/origin/main
error: branch 'remotes/origin/main' not found

# git branch -dr删除远程跟踪分支origin/main,但不会影响远程仓库中的main分支。如果你想删除本地的main分支,可以使用
C:\Users\admin\hexo>git branch -dr origin/main
Deleted remote-tracking branch origin/main (was 57fe0d3).

C:\Users\admin\hexo>git branch -a
* main

四、配置ssh免密登录

配置本地hexo到github免密上传文件

1.本地创建密钥
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
(1)Windows添加OpenSSH服务器
Windows11安装OpenSSH服务器:
设置---添加可选功能---OpenSSH服务器

(2)创建密钥
C:\Users\admin>ssh-keygen -t rsa -C 123456@msn.com

Generating public/private rsa key pair.
Enter file in which to save the key (C:\Users\admin/.ssh/id_rsa):
Enter passphrase (empty for no passphrase):
Enter same passphrase again:
Your identification has been saved in C:\Users\admin/.ssh/id_rsa
Your public key has been saved in C:\Users\admin/.ssh/id_rsa.pub
The key fingerprint is:
SHA256:MwQ8HrLBd4hnXtpeFPmiqcvVAR7YWqWwg0Z3K98ynrg admin@DESKTOP-JJN2EOG
The key's randomart image is:
+---[RSA 3072]----+
| ..o+.. oo |
| .=oOBo+o |
| oX=BO. . |
| .. +O.+o . |
| ..S+o. |
| o+B . |
| ..+ . |
| ..o |
| E. |
+----[SHA256]-----+

C:\Users\admin>cd .ssh

C:\Users\admin\.ssh>dir
Volume in drive C has no label.
Volume Serial Number is 70E6-2E1B

Directory of C:\Users\admin\.ssh

2024-07-02 19:06 <DIR> .
2024-07-02 19:06 <DIR> ..
2024-07-02 19:06 2,610 id_rsa
2024-07-02 19:06 576 id_rsa.pub
2024-01-31 16:21 1,021 known_hosts
2024-01-30 09:43 187 known_hosts.old
4 File(s) 4,394 bytes
2 Dir(s) 7,510,503,424 bytes free

(3)查看并复制公有密钥内容
C:\Users\admin\.ssh>more id_rsa.pub
ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABgQCv0XhN5bQ9bIbPvy72FUzbg6BWMQr/tlmffqEBKS/fcapi4yNVQVnt1oJVL1/ULuOgVuIhI5JFtwvspai9kbMyEb1XFpyVkz8dgt0gsase60vt20N/D9sobnLJyDBisP6kQXCLUFppvFPSki2L4pRIvU87IfDHY8XXgA1rtamiC3LcpRtS0RRUwfwIb4m7qU7ohnVu307qZMAcW6M/j746CY2gDwjtUiPh11Tt+nxEj4D9oz6r3jYuv362VIFG9BB9T6RMdUhaYblvf7yHjR5PT8467vWVveo/0suIhtgQeBmpWQ+e/1NUHHEv8XmhB+ox1QUIPmgMDUh9j2SGwpEAC3Ois5Rd9t1HEuktYS0oVzUhslhiTkID/OBNh12Pto2fXE7YmpJdl1c3km8hOL/Wgl6AslX3s5zmi3hW3aHkeAuL/dq5bdSnY1CsOZFOJ94vBW5OfnXW7IKiXOSOTjzaxHBlhw0sjVFpEJjyUZVjYVRFV1K8BatgYviiECk7LI8= 123456@msn.com
2.GitHub配置key

右上角点击头像,选择设置,点击左侧导航菜单SSH and GPG keys.

image-20240702191452096

image-20240702191744855

填写标题,将第1步中本地创建的密钥粘贴进key方框中,点击Add SSH key按钮,生成key

image-20240702192002610

image-20240702192627211

3.验证SSH是否成功
1
$ ssh -T git@github.com

image-20240702194008304

五、推送本地代码到GitHub

将本地代码上传至GitHub

1.安装部署插件
1
$ npm install hexo-deployer-git --save 

image-20240702194642839

2.Hexo配置部署参数
1
2
3
4
5
6
7
8
打开Hexo站点目录(C:\Users\admin\hexo)下的_config.yml参数文件,填写以下内容:

deploy:
type: git
#repo: https://github.com/hexohub/hexohub.github.io.git # 建议使用下方ssh方式,劝退https,经常会遇到未知错误
repo: git@github.com:hexohub/hexohub.github.io.git # 使用ssh连接
branch: main

image-20240703060500414

3.上传代码至GitHub
1
C:\Users\admin\hexo>hexo clean && hexo g && hexo d

image-20240703061215796

image-20240703034844049

六、访问网站

hexohub.github.io

image-20240703063148142

七、配置Cloudflare CDN加速Github(可选)

由于站点托管在Github,速度有时候尽不如人意,因此可以利用Cloudflare免费的CDN加速服务来提升Github站点的速度,前提是得有一个自己的域名,域名注册商很多,国外: namesilo,namecheap, domain 国内: 阿里云

1.域名注册

打开https://www.namesilo.com/,在购买域名之前,先注册一个帐号,然后在输入框输入自己想注册的域名,点击搜索域名

image-20240703112212454

image-20240703112437969

image-20240703114329320

找到自己喜欢的域名后缀,点击加入购物车,然后Checkout,出现确认界面,确定域名和金额无误后,再次点击Checkout

image-20240703114758622

image-20240703114924357

image-20240703124256187

image-20240703115311222

image-20240703115427263

2.查看域名

点击我的帐号,或点击头像下拉菜单选择我的帐号,进入帐号管理页面,点击左侧域名管理,就可以看到购买的域名

image-20240703113130048

image-20240703113352741

image-20240703113828589

3.Github绑定域名

https://docs.github.com/en/pages/configuring-a-custom-domain-for-your-github-pages-site/about-custom-domains-and-github-pages

image-20240703124127820

保存后会提示一些错误信息,那是因为还没有做DNS解析,下面开始配置DNS解析

image-20240703123758026

4.Cloudflare配置DNS

在绑定DNS之前,需要先注册Cloudflare帐号,登录注册好的帐号,开启绑定DNS愉快之旅

image-20240703134122998

image-20240703134604295

image-20240703174900820

image-20240703175201044

image-20240706122233841

image-20240706124642396

image-20240706124949547

image-20240703180113692

image-20240703180241076

image-20240703180350860

image-20240703180515809

image-20240703180623926

复制两条DNS记录,然后去域名注册商里修改nnameserver记录

5.Namesilo修改DNS

image-20240703141623412

image-20240703142139723

八、使用自定义域名访问Github网站
1
https://www.hexoblog.vip
  • Title: Hexo+GitHub+Cloudflare搭建免费个人博客网站教程
  • Author: 𝓓𝓸𝓷
  • Created at : 2024-07-08 13:23:25
  • Updated at : 2024-07-20 12:33:14
  • Link: https://www.zhangdong.me/hexo-github-cloudflare.html
  • License: This work is licensed under CC BY-NC-SA 4.0.
评论