0%

使用Hexo搭建个人博客(Hexo环境安装)

开始

  1. 安装nodejs

    1
    2
    curl -sL https://deb.nodesource.com/setup_12.x | bash -
    apt-get install nodejs -y
  2. 查看node和npm版本

    1
    2
    node -version      #显示版本号
    npm -version #显示版本号
  3. 安装git

    1
    apt-get git -y
  4. 查看git版本

    1
    git --version        #显示版本号
  5. npm更换国内源(这里使用的是淘宝源)

    1
    2
    npm config set registry https://registry.npm.taobao.org
    npm config list
  6. 安装hexo

    1
    npm install hexo-cli -g
  7. 初始化hexo项目

    1
    hexo init myblog
  8. 安装默认插件

    1
    2
    cd myblog
    npm install
  9. hexo博客生成

    1
    hexo server
  • 本文标题:使用Hexo搭建个人博客(Hexo环境安装)
  • 本文作者: LinG218
  • 本文链接: https://www.ling218.cn/archives/752f7472.html
  • 版权声明: 本博客所有文章除特别声明外,均采用 BY-NC-SA 许可协议。转载请注明出处!