解决办法
1. 结束占用4000端口的进程(推荐)
查找占用4000端口的程序,打开命令提示符输入
netstat -aon|findstr 4000
![在这里插入图片描述](https://img-blog.csdnimg.cn/26bad091b6c14b3c8933d888e9a16fd7.png)
结束12072进程
taskkill /f /pid 12072
重新hexo s即可
![在这里插入图片描述](https://img-blog.csdnimg.cn/c9eaff2aecf443408834a0e5a19c0d0d.png)
2.在_config.yml内添加下列代码,更改hexo-server运行时默认的端口号(例如改为4001)
server:
port: 4001
compress: true
header: true
3.给hexo换个端口运行(比如换为4001端口)
hexo s -p 5000