一、在GitHub自己创建一个免费域名,并验证邮箱。
二、在Mac下进行搭建
一、进入终端,下载 hexo (本地写博客的工具)

但是这种下载安装可能会在后面的步骤中报出以下错误,

查阅资料说是不影响使用。但还是略感难受。可以用以下方式下载 hexo 就不会出现问题

二、在桌面上创建博客目录,并且进入该文件夹

三、进行项目初始化写博客的目录

成功的标志

四、全局安装hexo

五、本地测试hexo

如果没有报错,就会出下以下地址,复制到搜索栏,可以在局域网下查看自己的博客了


六、对 _config.yml j进行更改

其中repo的地址,是粘贴之前创建微博账号的项目中粘贴的


七、创建一个博客
1、创建博客

2、对创建博客进行编译(语法与mackdown一样)

3、全局安装
hexo g
4、本地测试
hexo s
八、实现博客非局域网也能访问的功能(发布到GET)
1、三步走:

成功标志:

2、全局安装

3、发布
是 hexo deploy 的简写

4、依次输入账号姓名、密码

就会出现如下的网址

复制蓝色部分到搜索栏,就可以实现广域网网访问博客了

#一、new一个新的博客
hexo new “博客名”

找到相应的创建博客名的文件夹,

以下方式打开,在里面写入内容

#二、全局安装 hexo g

#三、发布 hexo d

网友评论