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 blog"

More info: Writing

Run server

1
$ hexo server

More info: Server

or

1
$ hexo s

有时候可能会遇到端口被占用,可列出端口4000的进程:

1
$ netstat -ano|findstr 4000

然后关闭该进程(6972为进程ID):

1
$ taskkill /pid 6972 /f

Generate static files

1
$ hexo generate

More info: Generating

or

1
$ hexo g

Deploy to remote sites

1
$ hexo deploy

More info: Deployment

or

1
$ hexo d

此时若报如下错误:

ERROR Deployer not found: git

可执行如下命令:

1
npm install --save hexo-deployer-git

最后更新: 2019年08月29日 15:08

原始链接: freesdw.github.io/2019/07/23/At-First/

× 请我吃巧克力吧
打赏二维码