1.node.js 地址.安装LTS版本
安装步骤:没有感情的下一步
2.安装 Git 地址.
安装步骤:没有感情的下一步
3.安装hexo
(1).新建文件夹(我命名为blog),并git init
(2).安装cnpm npm install -g cnpm --registry=https://registry.npm.taobao.org
(3).安装hexo cnpm install -g hexo-cli
验证是否安装成功 hexo -v
(4).首先看看当前路径命令 pwd
![在这里插入图片描述](https://img-blog.csdnimg.cn/20191105172239339.png
![在这里插入图片描述](https://img-blog.csdnimg.cn/20191105172243922.png)
(5).hexo init
4.运行测试
hexo clean #用来清理缓存文件
hexo g #生成文件
hexo s #运行本地服务器
hexo d #上传到服务器
运行
hexo s
5.在码云新建一个和账户名一样的仓库
(1).https://gitee.com/laiyinZY/laiyinZY仓库地址效果是这样的
在服务的pages开启pages服务
(2).在blog目录下
安装Hexo的git插件 cnpm install --save hexo-deployer-git
(3).修改 _config.yml
Deployment
Docs: https://hexo.io/docs/deployment.html
deploy:
type: git
repo: https://gitee.com/laiyinZY/laiyinZY