winney

It is never too old to learn.

0%
winney

Hexo笔记

本地预览:

1
hexo s

当默认端口4000被占用时:

1
FATAL Port 4000 has been used. Try other port instead.

解决默认端口4000被占用:

  1. 直接在终端命令行中指定端口

    1
    hexo server -p 4002
  2. 修改项目运行所在端口号

    修改package.json文件里的server,修改前: "server": "hexo server" 修改后: "server": "hexo server -p 4001" 注意:这时候你需.

    1
    npm run server