gpt4 book ai didi

intellij-idea - 如何在 Ubuntu 的 IntelliJ 项目中修复这些警告 "External file changes sync may be slow"和 "The current inotify(7) watch limit is too low"

转载 作者:行者123 更新时间:2023-12-04 12:20:16 24 4
gpt4 key购买 nike

当我打开我的项目时,我在 IntelliJ IDEA 中收到两条警告消息。

1. IntelliJ IDEA cannot receive filesystem event notifications
for the project. Is it on a network drive?

2. The current inotify(7) watch limit is too low.
注意:我使用的是 UBUNTU 20.04 LTS
Warnings Screenshot

最佳答案

正如在 this link 中分享的那样:
添加新的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

关于intellij-idea - 如何在 Ubuntu 的 IntelliJ 项目中修复这些警告 "External file changes sync may be slow"和 "The current inotify(7) watch limit is too low",我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/67927480/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com