在/etc/sysctl.d
文件夹下新建60-jetbrains.conf
文件
sudo touch /etc/sysctl.d/60-jetbrains.conf
编辑文件 写入
# 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 = 524288
命令:sudo sysctl -p --system
重启ide
参考:https://blog.csdn.net/hzjanger/article/details/90213534