前言

其实之前一直想用github搭一个了,无奈磕磕碰碰,遇点小困难就却难而退了,这几天在其他事情上也是这样,就换个地折腾一下。

感谢的大佬

  1. Eureka
  2. 卷二兔

参考文档

  1. Hexo
  2. butterfly
  3. 图标

安装过程

  1. 安装Node.js
  2. 安装Git
  3. 安装Hexo
1
2
3
4
5
npm install -g hexo-cli
hexo init <folder>
cd <folder>
npm install
npm install hexo-deployer-git --save
  1. 安装Hexo-theme-butterfly
1
2
3
npm install hexo-theme-butterfly
npm update hexo-theme-butterfly
npm install hexo-renderer-pug hexo-renderer-stylus --save
  1. 配置_config.yml和_config.butterfly.yml文件
  2. 实施部署
1
2
3
4
hexo clean
hexo generate
hexo deploy
hexo server

上面少了一块github的配置,就不说了哈哈

感想

昨天一整天都不在状态(或许以后很长一段时间都这样哈哈,也没关系吧,速度调节,欧力给!),晚上临时想着也不想做那件事(正在发愁的一件事,搭完之后还是要回归那件事的),也就想折腾一下个人博客,看看视频,跟着上面两位大哥引荐与教学,很快可以搞定的,出版就这样,其实我还有一个其他博客的,但是要买服务器、域名啥的,之后过期就丢了哈哈!

后记

之后有空就玩玩这个,看看有没啥需要记录的。

报错:FATAL Permission denied. You can’t use port 4000.

1
2
3
FATAL Permission denied. You can't use port 4000.
FATAL Something's wrong. Maybe you can find the solution here: https://hexo.io/docs/troubleshooting.html
Error: listen EACCES: permission denied 0.0.0.0:4000
  1. 解决方法一:hexo se -p 40000

  2. 解决方法二:net stop winnat,net start winnat

  3. 参考:https://blog.csdn.net/weixin_42429718/article/details/104310410