Skip to content

Latest commit

 

History

History
40 lines (33 loc) · 580 Bytes

搭建个人博客.md

File metadata and controls

40 lines (33 loc) · 580 Bytes

环境配置(centos7)

  • 安装nodejs
$ curl --silent --location https://rpm.nodesource.com/setup_8.x | bash -
$ yum install -y nodejs
  • 安装git
$ yum -y install git
//查看版本号
$ git --version
  • 通过node的包管理工具npm安装hexo
$ npm install -g hexo-cli

建站

$ hexo init <folder>
$ cd <folder>
$ npm install

配置主题

下载主题

$ cd your-hexo-site
$ git clone https://github.com/iissnan/hexo-theme-next themes/next

启用主题

修改配置文件_config.yml

theme: next