- 安装
sudo apt-get install git
- 配置
git config --global user.name "yourgithubname"
git config --global user.email "yourgithubemail"
sudo apt-get install nodejs
sudo npm install hexo-cli -g
sudo apt-get install npm
sudo npm install hexo-cli -g
npm install
npm install hexo-deployer-git --save
- 生成静态网页
hexo g
- 部署服务器
hexo d