看到报错提示后,先检查了一下磁盘使用率和inode数量,发现都正常。
这是网上搜索了一下,找到了解决办法
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