Hugo报错pipe Failed

警告
本文最后更新于 2023-02-16 00:32,文中内容可能已过时。

在mac上启动hugo serve的时候遇到了报错

1
2
3
4
5
6
7
Watching for changes in /Users/SoulChild/Documents/xxx/{archetypes,assets,content,data,layouts,static,themes}
Watching for config changes in /Users/SoulChild/Documents/xxx/config.toml, /Users/SoulChild/Documents/xxx/themes/FixIt/config.toml
fatal error: pipe failed

goroutine 1 [running]:
runtime.throw({0x101d846b1?, 0xc004ef2870?})
...

解决方法如下

1
2
3
4
sudo launchctl limit maxfiles 65535 200000
ulimit -n 65535
sudo sysctl -w kern.maxfiles=100000
sudo sysctl -w kern.maxfilesperproc=65535
请我喝杯水
SoulChild 微信号 微信号
SoulChild 微信打赏 微信打赏
0%