-
安装git
-
安装nodejs
$ wget -qO- https://raw.github.com/creationix/nvm/master/install.sh | sh
$ nvm install stable或者可以下载安装程序来安装。
- 安装hexo
$ npm install -g hexo-cli
$ npm install -g hexo-server- 下载代码
$ git clone git@github.com:yfshi/hexo-blog.git- 安装package
$ cd hexo-blog
$ npm installnpm install默认会安装package.json中dependencies和devDependencies里的所有模块.
- 启动本地server
$ hexo server- 访问 浏览器访问:http://127.0.0.1:4000