- 安装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