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