android studio 报错 External file changes sync may be slow: The current inotify(7) watch limit is too

/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

上一篇:Boosting Full-Node Repair in Erasure-Coded Storage


下一篇:Pxe自动安装脚本配置方法