1
达到内核inotify监视限制
我目前在linux机器上遇到问题,因为我已经以root身份返回了返回错误的命令,因为已经达到了inotify监视限制。 # tail -f /var/log/messages [...] tail: cannot watch '/var/log/messages': No space left on device # inotifywatch -v /var/log/messages Establishing watches... Failed to watch /var/log/messages; upper limit on inotify watches reached! Please increase the amount of inotify watches allowed per user via '/proc/sys/fs/inotify/max_user_watches'.` 我用谷歌搜索了一下,发现的每个解决方案都是通过增加以下限制: sudo sysctl fs.inotify.max_user_watches=<some random high number> …