Hexo 搭建博客

折腾博客

前言

  • 逻辑很乱没整理, 不要看这篇文章
  • 搜索是看到一个特别嘲讽的 哈哈哈 回答链接 http://lmgtfy.com/?q=github+page+建站
  • 参考 https://www.ezlippi.com/blog/2015/03/github-pages-blog.html
  • 如果有网络问题可以考虑自己买一个国外服务器搭一个梯子

操作

  • 先确认git ssh连接


    Hexo 搭建博客_第1张图片
    image.png

    ok 但是好像配置的github账号不对, 去重新设置了下


    Hexo 搭建博客_第2张图片
    image.png

Hexo 搭建博客_第3张图片
image.png

ok
失败
Hexo 搭建博客_第4张图片
image.png

原因, 我看看
Hexo 搭建博客_第5张图片
image.png

域名换成了 https://ericsun22.github.io/blogs/index

Hexo

同事推荐Hexo, 看了看, 好像更简单, 值得尝试
官网 https://hexo.io/zh-cn/docs/writing.html

  • 安装node


    Hexo 搭建博客_第6张图片
    image.png
  • 国内环境换一个镜像还是有必要的


    image.png

    Hexo 搭建博客_第7张图片
    image.png
  • cnpm 看起来不错


    Hexo 搭建博客_第8张图片
    image.png
  • 折腾了以后感觉不错, 那就不在window本地搞了, 去我的服务器 white上玩一下, 建一个git库, 本地操作远程
  • 我的服务器, 环境还没配齐 需要安装npm git
  • 我有conda 可以用来安装
  • conda install -c conda-forge nodejs


    Hexo 搭建博客_第9张图片
    image.png
  • 发现有网络问题?!
  • 那先将git放在 gitee上吧Ok
  • 启动 hexo server -p 80


    Hexo 搭建博客_第10张图片
    image.png

    Hexo 搭建博客_第11张图片
    image.png

    Hexo 搭建博客_第12张图片
    image.png

你可能感兴趣的:(Hexo 搭建博客)