centos7 安装hexo

安装node:


yum install -y nodejs

 

安装hexo脚手架:


npm install -g cnpm --registry=https://registry.npm.taobao.org

cnpm install -g hexo-cli

 

安装git(因为不安装会初始化很慢):


yum install -y git

 

初始化一个博客:


hexo init blog

 

启动服务(可以提供http服务)


hexo server