When you run:

hexo clean && hexo g

You might get the following error:

 

err: [Error: ENFILE: file table overflow, open '/<YourFilePath>/<YourFile>'] {
    errno: -23,
    code: 'ENFILE',
    syscall: 'open',
    path: '<YourFilePath>'
  }

 

To solve this, run the following commands:

 

echo kern.maxfiles=65536 | sudo tee -a /etc/sysctl.conf
echo kern.maxfilesperproc=65536 | sudo tee -a /etc/sysctl.conf
sudo sysctl -w kern.maxfiles=65536
sudo sysctl -w kern.maxfilesperproc=65536
ulimit -n 65536 

 

相关文章:

  • 2022-12-23
  • 2021-09-18
  • 2022-12-23
  • 2021-10-11
  • 2021-12-30
  • 2021-09-26
  • 2022-01-23
  • 2021-07-27
猜你喜欢
  • 2021-12-27
  • 2022-01-01
  • 2022-01-05
  • 2022-12-23
  • 2021-07-14
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案