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
2023-10-21 15:01:52
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