前言
系统:ubuntu20.04
这个报错的意思就是当前设置的默认"watch handle" to be set for each directory in the project,默认是监视句柄达不到系统或者项目需求
- 官方建议设置为524288
/etc/sysctl.conf*.confidea.conf/etc/sysctl.d/fs.inotify.max_user_watches = 524288
具体操作步骤
- 打开terminal,查看当前设置
$ cat /proc/sys/fs/inotify/max_user_watches
我当前是65536
2. 在/etc/sysctl.d
文件夹下新建60-jetbrains.conf
文件
sudo touch /etc/sysctl.d/60-jetbrains.conf
在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
- 重启系统,并重启ide
sudo sysctl -p --system
发表评论