From 51e23653d147474d16092e3665221f185010f9d3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=80=97=E7=8C=AB?= Date: Wed, 28 Jun 2023 05:12:01 +0000 Subject: [PATCH] =?UTF-8?q?docs:=20update=20=E5=B8=B8=E8=A7=81=E9=97=AE?= =?UTF-8?q?=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- 常见问题.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/常见问题.md b/常见问题.md index 2733dd4..8b9d61c 100644 --- a/常见问题.md +++ b/常见问题.md @@ -2,7 +2,7 @@ title: 常见问题 description: published: 1 -date: 2023-05-12T15:06:51.751Z +date: 2023-06-28T05:11:48.294Z tags: editor: markdown dateCreated: 2023-05-12T04:26:30.172Z @@ -36,8 +36,8 @@ dateCreated: 2023-05-12T04:26:30.172Z - 启动日志报与`inotify`相关的错误时,在宿主机上(不是docker容器里)执行以下命令,并重启宿主机: ```shell -echo fs.inotify.max_user_watches=524288 | sudo tee -a /etc/sysctl.conf -echo fs.inotify.max_user_instances=524288 | sudo tee -a /etc/sysctl.conf +echo fs.inotify.max_user_watches=5242880 | sudo tee -a /etc/sysctl.conf +echo fs.inotify.max_user_instances=5242880 | sudo tee -a /etc/sysctl.conf sudo sysctl -p ``` - 挂载`网盘`、`Windows向Linux的SMB共享`、`NFS共享`等不支持事件触发的目录实时监控,可改为使用`下载器监控`,或者打开目录同步的`兼容模式`(兼容模式下性能较低,可能会频繁读取磁盘)。