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


免责声明!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。



 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM