Hello Hexo

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

Create a new post

1
$ hexo new "My New Post"

More info: Writing

Run server

1
$ hexo server

More info: Server

Generate static files

1
$ hexo generate

More info: Generating

Deploy to remote sites

1
$ hexo deploy

npm 代理

1
2
npm config set https-proxy http://dev-proxy.web.com:8080
npm config set proxy http://dev-proxy.web.com:8080

npm 安装

安装完node.js后,在本地安装hexo

1
npm install hexo-cli -g

然后下载hexoblog的源码,最后执行

1
2
hexo s // 本地发表
hexo g -d // 发布到相应网站

端口修改

hexo s 默认使用的是 4000 端口,有时候使用这个还是无法浏览本地网页,这个时候就是需要修改端口了。

1
2
3
λ hexo s
INFO Start processing
INFO Hexo is running at http://localhost:4000/. Press Ctrl+C to stop.

修改端口

1
2
3
λ hexo s -p 3600
INFO Start processing
INFO Hexo is running at http://localhost:3600/. Press Ctrl+C to stop.

More info: Deployment