1. Install and Git Node.js
nodejs Chinese network: http://nodejs.cn/ download nodejs, self-installation .
Git's official website: https://git-scm.com/, download and install on their own
After 1.1 installed Nodejs, check the installed version
node -v
1.2 Note: Where an input node -v command it? (Familiar may ignore this process)
windows system: windows key + R shortcut to open operation , and enter cmd , then window cmd the input node -v
Or enter in node.js command prompt in the node -v
2. hexo mounting frame by means of npm
Description: theoretically available npm install directly, but domestic npm install will be relatively slow, so will domestic mirroring step of adding one more step. Use cnpm to install. (Here point to Taobao Mirror)
2.1 using domestic Taobao mirror source
Installation command:
npm install -g cnpm --registry==https://registry.npm.taobao.org
Check cnpm
cnpm -v
2.2cnpm installation hexo framework
installation
cnpm install -g hexo-cli
Verify check the version
hexo -v
windows at initialization hexo blog, right in the files you store the blog, and then choose Git Bash
hexo init
3. Management Hexo blog
3.1 Starting hexo blog
hexo s// start or serve
S HEXO
HEXO n-, "file name" New
HEXO Clear
HEXO generation G
4. deployed to Github
4.1 installation to deploy plugins
cnpm install --save hexo deployer-git
4.2 configuration file deployment
Open _config.yml you store the blog files folder, set the Deployment
of the type: git
repo: You github hosting warehouse address
branch: mastera
4.3 Deployment Commands
hexo d
The exhibition on the achievements and thinking
5.1 final outcome
5.2 Reflection
- Nodejs also doing?
- How do git version control
- Why can github
- This process is in the windows system, which changes linux system
- Blog to write what
6. How to change your blog theme skin Hexo
5.3 advice or tips
Step 1: there is described elsewhere in this tutorial is not clear, it is recommended to look at the Reference section after the article.
Step 2: Reference section did not help, then go to Baidu.
Step 3: After Baidu still be able to solve your problem, then private letter to me or give me a message. We can discuss your problems together.
Reference:
1. Taught you from zero to build their own personal blog | pit-free version of the video tutorial | HEXO
2. install node.js npm, cnpm- blog Park