$ cat /proc/sys/fs/inotify/max_user_watches
2.当前值太小,添加新的conf文件, 打开文件并添加以下内容:8192
# Set inotify watch limit high enough for IntelliJ IDEA (PhpStorm, PyCharm, RubyMine, WebStorm). # Create this file as /etc/sysctl.d/60-jetbrains.conf (Debian, Ubuntu), and # run `sudo service procps start` or reboot. # Source: https://confluence.jetbrains.com/display/IDEADEV/Inotify+Watches+Limit # # More information resources: # -$ man inotify # manpage # -$ man sysctl.conf # manpage # -$ cat /proc/sys/fs/inotify/max_user_watches # print current value in use fs.inotify.max_user_watches = 5242883.重新启动系统
$ sudo sysctl -p --system



