Hello World

Welcome to Hexo! This is your very first post. Check documentation for more info. If you get any problems when using Hexo, you can find the answer in troubleshooting or you can ask me on GitHub.

Quick Start

install Hexo

1
npm install hexo -g

upgrade Hexo

1
npm update hexo -g

init Blog

1
hexo init

Create a new post

1
2
hexo new "My New Post" 
hexo n "My New Post"

More info: Writing

Run server

1
hexo server

More info: Server

Generate static files

1
2
hexo generate
hexo g

More info: Generating

Deploy to remote sites

1
$ hexo deploy

More info: Deployment

Clear cache

1
hexo clean

Local Testing

1
2
3
4
hexo server #Hexo会监视文件变动并自动更新,无须重启服务器
hexo server -s #静态模式
hexo server -p 5000 #更改端口
hexo server -i 192.168.1.1 #自定义 IP