{"id":3070,"date":"2024-07-10T15:00:00","date_gmt":"2024-07-10T07:00:00","guid":{"rendered":"http:\/\/help.jianguoyun.com\/?p=3070"},"modified":"2024-07-10T15:08:07","modified_gmt":"2024-07-10T07:08:07","slug":"%e5%a6%82%e4%bd%95%e5%a2%9e%e5%8a%a0linux%e6%93%8d%e4%bd%9c%e7%b3%bb%e7%bb%9f%e4%b8%adinotify%e6%95%b0%e7%9b%ae%e7%9a%84%e4%b8%8a%e9%99%90","status":"publish","type":"post","link":"https:\/\/help.jianguoyun.com\/?p=3070","title":{"rendered":"\u5982\u4f55\u589e\u52a0linux\u64cd\u4f5c\u7cfb\u7edf\u4e2dinotify\u53e5\u67c4\u7684\u4e0a\u9650"},"content":{"rendered":"<p>\u5f53\u60a8\u9700\u8981\u540c\u6b65\u7684\u6587\u4ef6\u5939\u6570\u76ee\u5f88\u591a\uff0c \u6216\u8005\u5728\u540c\u65f6\u4f7f\u7528\u67d0\u4e9b\u5e38\u89c1\u5e94\u7528\uff0c\u4f8b\u5982\u7f51\u6613\u4e91\u97f3\u4e50Linux\u7248\u65f6\uff0c\u53ef\u80fd\u4f1a\u78b0\u5230\u575a\u679c\u4e91\u63d0\u793ainotify \u53e5\u67c4\u8d85\u8fc7\u7cfb\u7edf\u4e0a\u9650\u7684\u95ee\u9898\u3002 \u60a8\u53ef\u4ee5\u53c2\u8003\u4e0b\u9762\u7684\u6b65\u9aa4\u4e88\u4ee5\u4fee\u590d\u3002<\/p>\n<p>\u4e0b\u9762\u7684\u547d\u4ee4\u9ed8\u8ba4\u90fd\u5728Shell\u4e2d\u6267\u884c\u3002<\/p>\n<pre>echo fs.inotify.max_user_watches=524288 | sudo tee -a \/etc\/sysctl.conf<br \/>echo fs.inotify.max_user_instances=8192 | sudo tee -a \/etc\/sysctl.conf<br \/>sudo sysctl -p \/etc\/sysctl.conf<\/pre>\n\n\n<p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u5f53\u60a8\u9700\u8981\u540c\u6b65\u7684\u6587\u4ef6\u5939\u6570\u76ee\u5f88\u591a\uff0c \u6216\u8005\u5728\u540c\u65f6\u4f7f\u7528\u67d0\u4e9b\u5e38\u89c1\u5e94\u7528\uff0c\u4f8b\u5982\u7f51\u6613\u4e91\u97f3\u4e50Linux\u7248\u65f6\uff0c\u53ef\u80fd\u4f1a\u78b0\u5230\u575a\u679c\u4e91\u63d0\u793a [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":[],"categories":[9],"tags":[],"_links":{"self":[{"href":"https:\/\/help.jianguoyun.com\/index.php?rest_route=\/wp\/v2\/posts\/3070"}],"collection":[{"href":"https:\/\/help.jianguoyun.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/help.jianguoyun.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/help.jianguoyun.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/help.jianguoyun.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=3070"}],"version-history":[{"count":12,"href":"https:\/\/help.jianguoyun.com\/index.php?rest_route=\/wp\/v2\/posts\/3070\/revisions"}],"predecessor-version":[{"id":6757,"href":"https:\/\/help.jianguoyun.com\/index.php?rest_route=\/wp\/v2\/posts\/3070\/revisions\/6757"}],"wp:attachment":[{"href":"https:\/\/help.jianguoyun.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=3070"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/help.jianguoyun.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=3070"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/help.jianguoyun.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=3070"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}