下载地址:https://git-scm.com/downloads
安装过程一路下一步即可

下载地址:https://nodejs.org/zh-cn/download/
安装过程一路下一步即可

  1. npm install -g cnpm --registry=https://registry.npm.taobao.com

在这里插入图片描述

  1. cnpm install -g hexo-cli

在这里插入图片描述

移动到一个空文件夹作为博客文件夹,运行 hexo init
在这里插入图片描述

  1. hexo n "新文章标题"
  1. hexo clean
  2. hexo g
  1. hexo s

访问 http://localhost:4000/ 即可看到博客效果

仓库名必须是 用户名.github.io

  1. cnpm install --save hexo-deployer-git

在这里插入图片描述

在这里插入图片描述

  1. hexo d

想进一步了解编程开发相关知识,与我一同成长进步,请关注我的公众号“松果仓库”,共同分享宅&程序员的各类资源,谢谢!!!

版权声明:本文为songshudadi原创文章,遵循 CC 4.0 BY-SA 版权协议,转载请附上原文出处链接和本声明。
本文链接:https://www.cnblogs.com/songshudadi/p/11919746.html