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