{"id":4089,"date":"2012-07-25T16:10:04","date_gmt":"2012-07-25T08:10:04","guid":{"rendered":"http:\/\/edsionte.com\/techblog\/?p=4089"},"modified":"2012-07-25T16:10:12","modified_gmt":"2012-07-25T08:10:12","slug":"%e8%b0%83%e7%94%a8inotify_init%e5%87%ba%e7%8e%b0function-not-implemented%e7%9a%84%e8%a7%a3%e5%86%b3%e5%8a%9e%e6%b3%95","status":"publish","type":"post","link":"http:\/\/edsionte.com\/techblog\/archives\/4089","title":{"rendered":"\u8c03\u7528inotify_init()\u51fa\u73b0function not implemented\u7684\u89e3\u51b3\u529e\u6cd5"},"content":{"rendered":"<p>\u8c03\u7528inotify_init()\u540e\u8fd4\u56de-1\uff0c\u901a\u8fc7strerror(error)\u63d0\u793a\u4e3a\u201cFunction not implemented\u201d\uff0c\u8fd9\u4e2a\u9519\u8bef\u7684\u6392\u9664\u65b9\u6cd5\u5982\u4e0b\uff1a<\/p>\n<p>inotify\u662f\u4ece\u5185\u68382.6.13\u5f00\u59cb\u5f15\u5165\u7684\uff0c\u800cglibc\u4e3ainotify\u673a\u5236\u63d0\u4f9b\u7528\u6237\u6001API\u662f\u4ece2.4\u5f00\u59cb\u5f15\u5165\u7684\uff0c\u56e0\u6b64\u5148\u786e\u5b9a\u5185\u6838\u4ee5\u53caglibc\u7684\u7248\u672c\u662f\u5426\u6ee1\u8db3\u4e0a\u8ff0\u6761\u4ef6\u3002<\/p>\n<p>\u5185\u6838\u7684\u7248\u672c\u786e\u5b9a\u65b9\u6cd5\uff1auname -r<\/p>\n<p>\u67e5\u770bglibc\u7684\u7248\u672c\u4fe1\u606f\uff1als -l \/lib\/libc.so.6<\/p>\n<p>\u5982\u679c\u4e0a\u8ff0\u7248\u672c\u4fe1\u606f\u65e0\u8bef\uff0c\u90a3\u4e48\u63a5\u7740\u67e5\u770b\u5f53\u524d\u5185\u6838\u662f\u5426\u6253\u5f00\u4e86inotify\u7684\u76f8\u5173\u9009\u9879\uff1a<\/p>\n<p>1.\u8fdb\u5165\u5bb6\u76ee\u5f55\uff1acd<\/p>\n<p>2.\u5c06config.gz\u6587\u4ef6\u62f7\u8d1d\u5230\u5bb6\u76ee\u5f55\uff1acp \/proc\/config.gz \u00a0.\/<\/p>\n<p>3.\u89e3\u538b\u8fd9\u4e2a\u6587\u4ef6\u5230\u5bb6\u76ee\u5f55\uff1agzip -d config.gz<\/p>\n<p>4.\u6253\u5f00\u521a\u521a\u89e3\u538b\u7684\u6587\u4ef6\uff08\u9ed8\u8ba4\u60c5\u51b5\u4e0b\u6587\u4ef6\u540d\u4e3aconfig\uff09\uff0c\u67e5\u627eCONFIG_INOTIFY\u5173\u952e\u5b57\u3002\u5982\u679cCONFIG_INOTIFY\u548cCONFIG_INOTIFY_USR\u6ca1\u6709\u6253\u5f00\uff0c\u4e5f\u5c31\u662f\u8bf4\u5176\u503c\u4e0d\u662fY\uff0c\u90a3\u4e48\u5c31\u4e0d\u80fd\u4f7f\u7528inotify\u529f\u80fd\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u8c03\u7528inotify_init()\u540e\u8fd4\u56de-1\uff0c\u901a\u8fc7strerror(error)\u63d0\u793a\u4e3a\u201cFunction not [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[110],"tags":[252,349],"class_list":["post-4089","post","type-post","status-publish","format-standard","hentry","category-linux","tag-inotify","tag-inotify_init"],"views":13870,"_links":{"self":[{"href":"http:\/\/edsionte.com\/techblog\/wp-json\/wp\/v2\/posts\/4089","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/edsionte.com\/techblog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/edsionte.com\/techblog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/edsionte.com\/techblog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/edsionte.com\/techblog\/wp-json\/wp\/v2\/comments?post=4089"}],"version-history":[{"count":0,"href":"http:\/\/edsionte.com\/techblog\/wp-json\/wp\/v2\/posts\/4089\/revisions"}],"wp:attachment":[{"href":"http:\/\/edsionte.com\/techblog\/wp-json\/wp\/v2\/media?parent=4089"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/edsionte.com\/techblog\/wp-json\/wp\/v2\/categories?post=4089"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/edsionte.com\/techblog\/wp-json\/wp\/v2\/tags?post=4089"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}