tail: inotify cannot be used, reverting to polling: Too many open files

tail -f log出现以下warning:

tail: inotify cannot be used, reverting to polling: Too many open files

解决方法

#将以下两行添加至: /etc/sysctl.conf
fs.inotify.max_user_watches=1048576
fs.inotify.max_user_instances=1048576
#然后执行
sysctl -p /etc/sysctl.conf
posted @ 2021-11-06 13:57  Deven_xu  阅读(1598)  评论(0编辑  收藏  举报