System limit for number of file watchers reached, watch

vscode linux 下修改文件监控数


解决 bug System limit for number of file watchers reached, watch

sudo vi /etc/sysctl.conf
# 在最后面加入
fs.inotify.max_user_watches=524288
# 保存后推出
# 之后运行命令
sudo sysctl -p

该部分摘抄自 https://code.visualstudio.com/docs/setup/linux#_visual-studio-code-is-unable-to-watch-for-file-changes-in-this-large-workspace-error-enospc

你可能感兴趣的:(Linux,linux)