准备1、 一台主机 我的是阿里云(CentOS系统)2、 node.js可以参照我这篇文章搭建环境https://segmentfault.com/a/11…3、 git 安装后查看版本正常输出代表安装成功$ sudo yum install git-core$ git –versiongit version 1.8.3.1Hexo 安装$ npm install -g hexo-cli$ hexo versionhexo-cli: 1.1.0os: Linux 3.10.0-693.2.2.el7.x86_64 linux x64http_parser: 2.7.0node: 9.3.0v8: 6.2.414.46-node.15uv: 1.18.0zlib: 1.2.11ares: 1.13.0modules: 59nghttp2: 1.25.0openssl: 1.0.2nicu: 60.1unicode: 10.0cldr: 32.0tz: 2017c新建博客1、 建立文件夹$ hexo init blog2、安装$ cd blog$ npm install3、 生成静态页面$ hexo g4、 启动hexo博客$ hexo s更换hexo主题1、 下载next主题$ cd /home/blog/theme$ git clone https://github.com/iissnan/hexo-theme-next themes/next2、 配置hexo主题(_config.yml)主要是配置theme选项,其他配置可以自行参考hexo官网theme: hexo-theme-next更换主题后重新生成静态文件然后启动$ hexo g$ hexo s