By default, Linux only allocates 8192 watches for inotify, which is ridiculously low. And when it runs out, the error is also No space left on device, which may be confusing if you aren't explicitly looking for this issue.

 

 vi /etc/sysctl.conf  增加  fs.inotify.max_user_watches = 262144

 

# sysctl -p
fs.file-max = 1020000
fs.inotify.max_user_watches = 262144

 

systemctl daemon-reload

相关文章:

  • 2021-06-30
  • 2021-08-12
  • 2021-08-06
  • 2022-12-23
  • 2021-07-19
  • 2022-12-23
猜你喜欢
  • 2021-06-01
  • 2022-12-23
  • 2021-12-29
  • 2021-12-28
  • 2022-01-07
  • 2021-12-29
  • 2021-10-24
相关资源
相似解决方案