{"id":836,"date":"2017-03-12T03:03:41","date_gmt":"2017-03-12T03:03:41","guid":{"rendered":"https:\/\/peloo.net\/?p=836"},"modified":"2017-03-12T03:33:33","modified_gmt":"2017-03-12T03:33:33","slug":"%e6%bc%ab%e7%94%bb%e8%b5%8f%e6%9e%90%ef%bc%9alinux-%e5%86%85%e6%a0%b8%e5%88%b0%e5%ba%95%e9%95%bf%e5%95%a5%e6%a0%b7%e8%bd%ac","status":"publish","type":"post","link":"https:\/\/peloo.net\/?p=836","title":{"rendered":"\u6f2b\u753b\u8d4f\u6790\uff1aLinux \u5185\u6838\u5230\u5e95\u957f\u5565\u6837(\u8f6c)"},"content":{"rendered":"<p>\n\t\u4eca\u5929\uff0c\u6211\u6765\u4e3a\u5927\u5bb6\u89e3\u8bfb\u4e00\u5e45\u6765\u81ea TurnOff.us \u7684\u6f2b\u753b &ldquo;<a class=\"ext\" href=\"http:\/\/turnoff.us\/geek\/inside-the-linux-kernel\/\" rel=\"external nofollow\" target=\"_blank\">InSide The Linux Kernel<\/a>&rdquo; \u3002&nbsp;<a class=\"ext\" href=\"http:\/\/turnoff.us\/\" rel=\"external nofollow\" target=\"_blank\">TurnOff.us<\/a>&nbsp;\u662f\u4e00\u4e2a\u6781\u5ba2\u6f2b\u753b\u7f51\u7ad9\uff0c\u4f5c\u8005Daniel Stori \u753b\u4e86\u4e00\u4e9b\u975e\u5e38\u6709\u8da3\u7684\u5173\u4e8e\u7f16\u7a0b\u8bed\u8a00\u3001Web\u3001\u4e91\u8ba1\u7b97\u3001Linux \u76f8\u5173\u7684\u6f2b\u753b\u3002\u4eca\u5929\u89e3\u8bfb\u7684\u4fbf\u662f\u5176\u4e2d\u7684\u4e00\u7bc7\u3002\n<\/p>\n<p>\n\t\u5728\u5f00\u59cb\uff0c\u6211\u4eec\u5148\u6765\u770b\u770b\u8fd9\u5e45\u6f2b\u753b\u7684\u5168\u8c8c\uff01\n<\/p>\n<p class=\"article_img\">\n\t<img decoding=\"async\" alt=\"Inside the Linux Kernel\" height=\"\" src=\"https:\/\/dn-linuxcn.qbox.me\/data\/attachment\/album\/201703\/11\/182127x7wi7obls96k8yb5.gif\" style=\"cursor: pointer\" width=\"\" \/>\n<\/p>\n<p class=\"article_img_desc\">\n\t<em>Inside the Linux Kernel<\/em>\n<\/p>\n<p>\n\t\u8fd9\u5e45\u6f2b\u753b\u662f\u4ee5\u4e00\u4e2a\u623f\u5b50\u7684\u4fa7\u65b9\u5228\u9762\u56fe\u6765\u7ed8\u753b\u7684\u3002\u4f7f\u7528\u8fd9\u6837\u7684\u4e00\u4e2a\u623f\u5b50\u6765\u4ee3\u8868 Linux \u5185\u6838\u3002\n<\/p>\n<p>\n\t&nbsp;\n<\/p>\n<h3>\n\t\u5730\u57fa<br \/>\n<\/h3>\n<p>\n\t\u4f5c\u4e3a\u4e00\u4e2a\u623f\u5b50\uff0c\u6700\u91cd\u8981\u7684\u83ab\u8fc7\u4e8e\u5176\u5730\u57fa\uff0c\u5728\u8fd9\u4e2a\u56fe\u7247\u91cc\uff0c\u6211\u4eec\u4e5f\u4ece\u6700\u4e0b\u9762\u7684\u5730\u57fa\u5f00\u59cb\u770b\u8d77\uff1a\n<\/p>\n<p class=\"article_img\">\n\t<img decoding=\"async\" alt=\"Filesystem\" src=\"https:\/\/dn-linuxcn.qbox.me\/data\/attachment\/album\/201703\/11\/181639lpt1mkgnnmgzz3q4.png\" style=\"width: 733px;cursor: pointer\" \/>\n<\/p>\n<p class=\"article_img_desc\">\n\t<em>Filesystem<\/em>\n<\/p>\n<p>\n\t\u5730\u57fa\uff08\u5e95\u5c42\uff09\u7531\u4e00\u6392\u6392\u7684\u6587\u4ef6\u67dc\u7ec4\u6210\uff0c\u4e95\u7136\u6709\u5e8f\uff0c\u6587\u4ef6\u67dc\u91cc\u653e\u7f6e\u7740&ldquo;\u6587\u4ef6&rdquo;&mdash;&mdash;\u7535\u8111\u4e2d\u7684\u6587\u4ef6\u3002\u5de6\u4e0a\u89d2\uff0c\u6709\u4e00\u53ea\u80f8\u524d\u6302\u7740 421 \u53f7\u724c\u7684\u5c0f\u4f01\u9e45\uff0c\u5b83\u8868\u793a\u7740 PID\uff08\u8fdb\u7a0b ID\uff08Process ID\uff09\uff09 \u4e3a 421 \u7684\u8fdb\u7a0b\uff0c\u5b83\u6b63\u5728\u67e5\u770b\u6587\u4ef6\u67dc\u4e2d\u7684\u6587\u4ef6\uff0c\u8fd9\u4ee3\u8868\u7cfb\u7edf\u4e2d\u6b63\u6709\u4e00\u4e2a\u8fdb\u7a0b\u5728\u8bbf\u95ee\u6587\u4ef6\u7cfb\u7edf\u3002\u5728\u53f3\u4e0b\u89d2\u6709\u4e00\u53ea\u5c0f\u72d7\uff0c\u5b83\u662f\u770b\u95e8\u72d7\uff08watchdog\uff09 \uff0c\u8fd9\u4ee3\u8868\u5bf9\u6587\u4ef6\u7cfb\u7edf\u7684\u76d1\u63a7\u3002\n<\/p>\n<p>\n\t&nbsp;\n<\/p>\n<h3>\n\t\u4e00\u5c42\uff08\u5730\u9762\u5c42\uff09<br \/>\n<\/h3>\n<p class=\"article_img\">\n\t<img decoding=\"async\" alt=\"floor\" height=\"\" src=\"https:\/\/dn-linuxcn.qbox.me\/data\/attachment\/album\/201703\/11\/181640s6rqzk6f6n4y1uqq.png\" style=\"cursor: pointer\" width=\"\" \/>\n<\/p>\n<p class=\"article_img_desc\">\n\t<em>floor<\/em>\n<\/p>\n<p>\n\t\u770b\u5b8c\u4e86\u5730\u57fa\uff0c\u63a5\u4e0b\u6765\u6211\u4eec\u6765\u770b\u5730\u57fa\u4e0a\u9762\u7684\u4e00\u5c42\uff0c\u90fd\u6709\u54ea\u4e9b\u4e1c\u897f\u3002\n<\/p>\n<p class=\"article_img\">\n\t<img decoding=\"async\" alt=\"Process Table\" src=\"https:\/\/dn-linuxcn.qbox.me\/data\/attachment\/album\/201703\/11\/181641j64aw6a6tmtparl6.png\" style=\"width: 733px;cursor: pointer\" \/>\n<\/p>\n<p class=\"article_img_desc\">\n\t<em>Process Table<\/em>\n<\/p>\n<p>\n\t\u5728\u8fd9\u4e00\u5c42\uff0c\u6700\u5f15\u4eba\u77a9\u76ee\u7684\u83ab\u8fc7\u4e8e\u4e2d\u95f4\u7684\u4e00\u5757\u57ab\u5b50\uff0c\u4f17\u591a\u5c0f\u4f01\u9e45\u5728\u56f4\u7740\u7740\u684c\u5b50\u5750\u7740\u3002\u8fd9\u4e2a\u57ab\u5b50\u7684\u533a\u57df\u4ee3\u8868\u8fdb\u7a0b\u8868\u3002\n<\/p>\n<p>\n\t\u5de6\u4e0a\u89d2\u6709\u4e00\u4e2a\u5c0f\u4f01\u9e45\uff0c\u7ad9\u7740\uff0c\u4eff\u4f5b\u5728\u8bf4\u4e9b\u4ec0\u4e48\u8fd9\u663e\u7136\u662f\u4e00\u4f4d\u5bb6\u957f\u5f0f\u7684\u4eba\u7269\uff0c\u4e0d\u8fc7\u770b\u8d77\u6765\u5468\u56f4\u5750\u7684\u90a3\u4e9b\u5c0f\u4f01\u9e45\u4e0d\u662f\u5f88\u542c\u8bdd&mdash;&mdash;\u4f60\u770b\u6709\u597d\u591a\u8d70\u795e\u3001\u81ea\u987e\u81ea\u804a\u5929\u7684&mdash;&mdash;&ldquo;\u5582\u5582\uff0c\u8bf4\u4f60\u5462\uff0c\u54c7\u585e\u5a03\uff08171\uff09\uff0c\u8f6c\u8fc7\u8eab\u6765&rdquo;\u3002\u5b83\u4ee3\u8868\u7740 Linux \u5185\u6838\u4e2d\u7684\u521d\u59cb\u5316\uff08init\uff09\u8fdb\u7a0b\uff0c\u4e5f\u5c31\u662f\u6211\u4eec\u5e38\u8bf4\u7684 PID \u4e3a 1 \u7684\u8fdb\u7a0b\u3002\u684c\u5b50\u4e0a\u5750\u7684\u5c0f\u4f01\u9e45\u90fd\u5728\u7b49\u5f85\u72b6\u6001\uff08wait\uff09\u4e2d\uff0c\u7b49\u5f85\u5de5\u4f5c\u4efb\u52a1\u3002\n<\/p>\n<p class=\"article_img\">\n\t<img loading=\"lazy\" decoding=\"async\" alt=\"watchdog\" height=\"227\" src=\"https:\/\/dn-linuxcn.qbox.me\/data\/attachment\/album\/201703\/11\/182807wiandez0dyruydvr.jpg\" width=\"439\" \/>\n<\/p>\n<p class=\"article_img_desc\">\n\t<em>watchdog<\/em>\n<\/p>\n<p>\n\t\u77a7\u77a7\uff0c\u57ab\u5b50\uff08\u8fdb\u7a0b\u8868\uff09\u65c1\u8fb9\u4e5f\u6709\u4e00\u53ea\u5c0f\u72d7\uff0c\u5b83\u4f1a\u76d1\u63a7\u5c0f\u4f01\u9e45\u7684\u72b6\u6001\uff08\u76d1\u63a7\u8fdb\u7a0b\uff09\uff0c\u5f53\u5c0f\u4f01\u9e45\u4eec\u4e0d\u542c\u8bdd\u65f6\uff0c\u5b83\u5c31\u4f1a\u6c6a\u6c6a\u5730\u53eb\u558a\u8d77\u6765\u3002\n<\/p>\n<p class=\"article_img\">\n\t<img decoding=\"async\" alt=\"httpd process\" src=\"https:\/\/dn-linuxcn.qbox.me\/data\/attachment\/album\/201703\/11\/181641tdq1inpqi9gnquqa.png\" \/>\n<\/p>\n<p class=\"article_img_desc\">\n\t<em>httpd process<\/em>\n<\/p>\n<p>\n\t\u5728\u8fd9\u5c42\u7684\u5de6\u4fa7\uff0c\u6709\u4e00\u53ea\u53f7\u724c\u4e3a 1341 \u7684\u5c0f\u4f01\u9e45\uff0c\u5b88\u5728\u95e8\u53e3\uff0c\u95e8\u4e0a\u5199\u7740 80\uff0c\u8bf4\u660e\u8fd9\u4e2a PID \u4e3a 1341 \u7684\u5c0f\u4f01\u9e45\u8d1f\u8d23\u63a5\u5f85 80 \u7aef\u53e3\uff0c\u4e5f\u5c31\u662f\u6211\u4eec\u5e38\u8bf4\u7684 HTTP \uff08\u7f51\u7ad9\uff09\u7684\u7aef\u53e3\u3002\u5c0f\u4f01\u9e45\u5934\u4e0a\u6709\u4e00\u7247\u7fbd\u6bdb\uff0c\u8fd9\u7247\u7fbd\u6bdb\u5927\u6709\u6765\u5386\uff0c\u5b83\u662f\u8457\u540d\u7684 HTTP \u670d\u52a1\u5668 Apache \u7684 Logo\u3002\u558f\uff0c\u5c31\u662f\u8fd9\u53ea\uff1a\n<\/p>\n<p class=\"article_img\">\n\t<img decoding=\"async\" alt=\"apache logo\" src=\"https:\/\/dn-linuxcn.qbox.me\/data\/attachment\/album\/201703\/11\/181641irppc393zm96lcbw.jpg\" \/>\n<\/p>\n<p class=\"article_img_desc\">\n\t<em>apache logo<\/em>\n<\/p>\n<p>\n\t\u5411\u53f3\u770b\uff0c\u6211\u4eec\u53ef\u4ee5\u770b\u5230\u8fd9\u91cc\u4ecd\u6709\u4e00\u6247\u95e8\uff0c\u95e8\u4e0a\u5199\u7740 21\uff0c\u4f46\u662f\uff0c\u770b\u8d77\u6765\u8fd9\u6247\u95e8\u4f3c\u4e4e\u5e74\u4e45\u5931\u4fee\uff0c\u4e0a\u9762\u7684\u95e8\u724c\u53f7\u90fd\u6b6a\u4e86\uff0c\u95e8\u53e3\u4e5f\u6ca1\u4eba\u5b88\u7740\u3002\u770b\u8d77\u6765\u8fd9\u4e2a 21 \u7aef\u53e3\u7684 FTP \u534f\u8bae\u6709\u70b9\u8001\u65e7\u4e86\uff0c\u76ee\u524d\u7528\u7684\u4eba\u4e5f\u6bd4\u4ee5\u524d\u5c11\u4e86\uff0c\u4ee5\u81f3\u4e8e\u8fd9\u91cc\u90fd\u6ca1\u4eba\u63a5\u5f85\u4e86\u3002\n<\/p>\n<p class=\"article_img\">\n\t<img decoding=\"async\" alt=\"Port 21\" src=\"https:\/\/dn-linuxcn.qbox.me\/data\/attachment\/album\/201703\/11\/181641tqmdf5pwbbk0bwk1.png\" \/>\n<\/p>\n<p class=\"article_img_desc\">\n\t<em>Port 21<\/em>\n<\/p>\n<p>\n\t\u800c\u5728\u6700\u53f3\u4fa7\u7684\u4e00\u4e2a\u95e8\u724c\u53f7 22 \u7684\u4eec\u7684\u5f85\u9047\u5c31\u5927\u4e3a\u4e0d\u540c\uff0c\u5c45\u7136\u6709\u4e00\u53ea\u5e26\u7740\u58a8\u955c\u7684\u5c0f\u4f01\u9e45\u5728\u5b88\u7740\uff0c\u770b\u8d77\u6765\u597d\u9177\u554a\uff0c\u5b83\u662f\u9ed1\u8863\u4eba\u53d4\u53d4\u5417\uff1f\u4e3a\u4ec0\u4e48\u8981\u8fd9\u4e48\u9177\u7684\u4e00\u4e2a\u4f01\u9e45\u5462\uff0c\u56e0\u4e3a 22 \u7aef\u53e3\u662f SSH \u7aef\u53e3\uff0c\u662f\u4e00\u4e2a\u975e\u5e38\u91cd\u8981\u7684\u8fdc\u7a0b\u8fde\u63a5\u7aef\u53e3\uff0c\u901a\u5e38\u901a\u8fc7\u8fd9\u4e2a\u7aef\u53e3\u8fdb\u884c\u8fdc\u7a0b\u7ba1\u7406\uff0c\u6240\u4ee5\u5bf9\u8fd9\u4e2a\u7aef\u53e3\u8fdb\u6765\u7684\u4eba\u8981\u4ed4\u7ec6\u5ba1\u67e5\u3002\n<\/p>\n<p class=\"article_img\">\n\t<img decoding=\"async\" alt=\"ssh daemon\" src=\"https:\/\/dn-linuxcn.qbox.me\/data\/attachment\/album\/201703\/11\/181642w3jjco9d3xo9c4pk.png\" \/>\n<\/p>\n<p class=\"article_img_desc\">\n\t<em>ssh daemon<\/em>\n<\/p>\n<p>\n\t\u5b83\u7684\u8eab\u4e0a\u5199\u7740 52\uff0c\u8bf4\u660e\u5b83\u662f\u7b2c 52 \u4e2a\u5c0f\u4f01\u9e45\u3002\n<\/p>\n<p class=\"article_img\">\n\t<img loading=\"lazy\" decoding=\"async\" alt=\"to fs\" height=\"161\" src=\"https:\/\/dn-linuxcn.qbox.me\/data\/attachment\/album\/201703\/11\/182316lbnntb6e9tcezc66.jpg\" width=\"200\" \/>\n<\/p>\n<p class=\"article_img_desc\">\n\t<em>to fs<\/em>\n<\/p>\n<p>\n\t\u5728\u56fe\u7247\u7684\u5de6\u4e0a\u89d2\uff0c\u6709\u4e00\u4e2a\u5411\u4e0b\u53f0\u9636\u3002\u8fd9\u4e2a\u53f0\u9636\u662f\u5e95\u5c42\uff08\u5730\u57fa\uff09\u7684\u6587\u4ef6\u7cfb\u7edf\u4e2d\u7684\uff0c\u8fdb\u7a0b\u4eec\u53ef\u4ee5\u901a\u8fc7\u8fd9\u4e2a\u53f0\u9636\uff0c\u5230\u6587\u4ef6\u7cfb\u7edf\u4e2d\u53bb\u8bfb\u53d6\u6587\u4ef6\uff0c\u8fdb\u884c\u64cd\u4f5c\u3002\n<\/p>\n<p class=\"article_img\">\n\t<img decoding=\"async\" alt=\"CronTab\" src=\"https:\/\/dn-linuxcn.qbox.me\/data\/attachment\/album\/201703\/11\/181642y0p656w54rvrtzwv.png\" \/>\n<\/p>\n<p class=\"article_img_desc\">\n\t<em>CronTab<\/em>\n<\/p>\n<p>\n\t\u5728\u8fd9\u4e00\u5c42\u4e2d\uff0c\u6709\u4e00\u4e2a\u8eab\u4e0a\u5199\u7740 217 \u7684\u5c0f\u4f01\u9e45\uff0c\u4ed6\u6b63\u6ee1\u5934\u5927\u6c57\u5730\u770b\u7740\u81ea\u5df1\u7684\u624b\u8868\u3002\u8fd9\u53ea\u5c0f\u4f01\u9e45\u5c31\u662f\u5b9a\u65f6\u4efb\u52a1\uff08Crontab\uff09\uff0c\u4ed6\u4f1a\u65f6\u523b\u5173\u6ce8\u65f6\u95f4\uff0c\u67e5\u770b\u662f\u5426\u8981\u53bb\u505a\u67d0\u4e2a\u5de5\u4f5c\u3002\n<\/p>\n<p class=\"article_img\">\n\t<img loading=\"lazy\" decoding=\"async\" alt=\"pipeline\" height=\"265\" src=\"https:\/\/dn-linuxcn.qbox.me\/data\/attachment\/album\/201703\/11\/182635pexd5ss8nt5tpc5r.jpg\" width=\"713\" \/>\n<\/p>\n<p class=\"article_img_desc\">\n\t<em>pipeline<\/em>\n<\/p>\n<p>\n\t\u5728\u56fe\u7247\u7684\u4e2d\u90e8\uff0c\u6709\u4e24\u4e2a\u5c0f\u4f01\u9e45\u625b\u7740\u7ba1\u9053\uff08PipeLine\uff09\u5728\u884c\u8d70\uff0c\u4e00\u53ea\u5c0f\u4f01\u9e45\u53ef\u4ee5\u628a\u81ea\u5df1\u624b\u4e0a\u7684\u4e1c\u897f\u901a\u8fc7\u8fd9\u4e2a\u7ba1\u9053\uff0c\u4f20\u9012\u7ed9\u540e\u9762\u7684\u5c0f\u4f01\u9e45\u3002\u4e0d\u8fc7\u600e\u4e48\u770b\u8d77\u6765\u524d\u9762\u8fd9\u79cd\uff08\u7537\uff1f\uff09\u4f01\u9e45\u7d2f\u5f97\u6ee1\u5934\u5927\u6c57\uff0c\u800c\u540e\u9762\u90a3\u53ea\uff08\u5973\uff1f\uff09\u4f01\u9e45\u4f3c\u4e4e\u6e38\u5203\u6709\u4f59&mdash;&mdash;\u5582\u5582\uff0c\u524d\u9762\u90a3\u4e2a\uff0c\u88e4\u5b50\u5feb\u6389\u4e86~\n<\/p>\n<p class=\"article_img\">\n\t<img loading=\"lazy\" decoding=\"async\" alt=\"Wine\" height=\"233\" src=\"https:\/\/dn-linuxcn.qbox.me\/data\/attachment\/album\/201703\/11\/182716mrrolepikrr0k067.jpg\" width=\"427\" \/>\n<\/p>\n<p class=\"article_img_desc\">\n\t<em>Wine<\/em>\n<\/p>\n<p>\n\t\u5728\u8fd9\u4e00\u5c42\u8fd8\u6709\u53e6\u5916\u7684\u4e00\u4e2a\u5c0f\u4f01\u9e45\uff0c\u5b83\u624b\u4e0a\u62ff\u7740\u4e00\u676f\u7ea2\u9152\uff0c\u8eab\u4e0a\u5199\u7740 411\uff0c\u770b\u8d77\u6765\u6709\u70b9\u4e0d\u80dc\u9152\u529b\u3002\u5b83\u5c31\u662f\u7ea2\u9152\uff08Wine\uff09\u5c0f\u4f01\u9e45,\u5b83\u53ef\u4ee5\u5e72\uff08\u6267\u884c\uff09\u4e00\u4e9b\u6765\u81ea Windows \u7684\u4efb\u52a1\u3002\n<\/p>\n<p>\n\t&nbsp;\n<\/p>\n<h3>\n\t\u8dc3\u5c42<br \/>\n<\/h3>\n<p>\n\t\u5728\u4e00\u5c42\u4e4b\u4e0a\uff0c\u8fd8\u6709\u4e00\u4e2a\u8dc3\u5c42\uff0c\u8fd9\u91cc\u6709\u5f88\u591a\u4e0d\u540c\u7684\u5c4f\u5e55\uff0c\u6bcf\u4e2a\u5c4f\u5e55\u4e0a\u5199\u7740 TTY\uff08\u8fd9\u5c31\u662f\u5bf9\u5916\u7684\u7ec8\u7aef\uff09\u3002\u6bd4\u5982\u8bf4\u6700\u5de6\u8fb9 tty4 \u4e0a\u8f93\u5165\u4e86&ldquo;fre&rdquo;&mdash;&mdash;\u8fd9\u662f\u60f3\u8f93\u5165&ldquo;freshmeat...&rdquo;\u4e48 \uff1ad \uff1b\u5b83\u65c1\u8fb9\u7684 tty2 \u548c tty3 \u5c31\u6b63\u5e38\u591a\u4e86\uff0c\u770b\u8d77\u6765\u662f\u6bd4\u8f83\u6b63\u5e38\u7684\u547d\u4ee4\uff1btty7 \u663e\u793a\u7684\u56fe\u5f62\u754c\u9762\u55f3\uff0c\u5bf9\uff0c\u56fe\u5f62\u754c\u9762\uff08X&nbsp;Window\uff09\u4e00\u822c\u5c31\u5728 7 \u53f7\u7ec8\u7aef\uff1btty5 \u548c tty6 \u662f\u7a7a\u7684\uff0c\u8fd9\u8868\u793a\u8fd9\u4e24\u4e2a\u7ec8\u7aef\u6ca1\u4eba\u7528\u3002\u7b49\u7b49\uff0ctty1 \u5462\uff1f\n<\/p>\n<p class=\"article_img\">\n\t<img decoding=\"async\" alt=\"tty\" height=\"\" src=\"https:\/\/dn-linuxcn.qbox.me\/data\/attachment\/album\/201703\/11\/181643hu95agy1jxn6y2ns.png\" style=\"cursor: pointer\" width=\"\" \/>\n<\/p>\n<p class=\"article_img_desc\">\n\t<em>tty<\/em>\n<\/p>\n<p>\n\ttty\uff08\u7ec8\u7aef\uff09\u662f\u5bf9\u5916\u6c9f\u901a\u7684\u6e20\u9053\u4e4b\u4e00\uff0c\u4f46\u662f\uff0c\u4e0d\u662f\u6bcf\u4e00\u4e2a\u8fdb\u7a0b\u90fd\u9700\u8981 tty\uff0c\u67d0\u4e9b\u8fdb\u7a0b\u53ef\u4ee5\u76f4\u63a5\u901a\u8fc7\u5176\u4ed6\u9014\u5f84\uff08\u6bd4\u5982\u7aef\u53e3\uff09\u6765\u548c\u5916\u90e8\u8fdb\u884c\u901a\u4fe1\uff0c\u5bf9\u5916\u63d0\u4f9b\u670d\u52a1\u7684\uff0c\u6240\u4ee5\uff0c\u8fd9\u4e00\u5c42\u4e0d\u662f\u5b8c\u6574\u7684\u4e00\u5c42\uff0c\u53ea\u662f\u4e2a\u8dc3\u5c42\u3002\n<\/p>\n<p>\n\t\u597d\u4e86\uff0c\u6211\u4eec\u6709\u843d\u4e0b\u4ec0\u4e48\u5417\uff1f\n<\/p>\n<p class=\"article_img\">\n\t<img decoding=\"async\" alt=\"\" src=\"https:\/\/dn-linuxcn.qbox.me\/data\/attachment\/album\/201703\/11\/182742ro2b7ye7n9rrgrpr.jpg\" \/>\n<\/p>\n<p>\n\t\u8fd9\u5c0f\u4e11\u662f\u8c01\u554a\uff1f\n<\/p>\n<p>\n\t\u554a\u54c8\uff0c\u6211\u4e5f\u4e0d\u77e5\u9053\uff0c\u6216\u8bb8\u662f\u75c5\u6bd2\uff1f\u4f60\u8bf4\u5462\uff1f<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u4eca\u5929\uff0c\u6211\u6765\u4e3a\u5927\u5bb6\u89e3\u8bfb\u4e00\u5e45\u6765\u81ea TurnOff.us \u7684\u6f2b\u753b &ldquo;InSide The Linux Kernel&rdquo; \u3002&nbsp;TurnOff.us&nbsp;\u662f\u4e00\u4e2a\u6781\u5ba2\u6f2b\u753b\u7f51\u7ad9\uff0c\u4f5c\u8005Daniel Stori \u753b\u4e86\u4e00\u4e9b\u975e\u5e38\u6709\u8da3\u7684\u5173\u4e8e\u7f16\u7a0b\u8bed\u8a00\u3001Web\u3001\u4e91\u8ba1\u7b97\u3001Linux \u76f8\u5173\u7684\u6f2b\u753b\u3002\u4eca\u5929\u89e3\u8bfb\u7684\u4fbf\u662f\u5176\u4e2d\u7684\u4e00\u7bc7\u3002 \u5728\u5f00\u59cb\uff0c\u6211\u4eec\u5148\u6765\u770b\u770b\u8fd9\u5e45\u6f2b\u753b\u7684\u5168\u8c8c\uff01 Inside the Linux Kernel \u8fd9\u5e45\u6f2b\u753b\u662f\u4ee5\u4e00\u4e2a\u623f\u5b50\u7684\u4fa7\u65b9\u5228\u9762\u56fe\u6765\u7ed8\u753b\u7684\u3002\u4f7f\u7528\u8fd9\u6837\u7684\u4e00\u4e2a\u623f\u5b50\u6765\u4ee3\u8868 Linux \u5185\u6838\u3002 &nbsp; \u5730\u57fa \u4f5c\u4e3a\u4e00\u4e2a\u623f\u5b50\uff0c\u6700\u91cd\u8981\u7684\u83ab\u8fc7\u4e8e\u5176\u5730\u57fa\uff0c\u5728\u8fd9\u4e2a\u56fe\u7247\u91cc\uff0c\u6211\u4eec\u4e5f\u4ece\u6700\u4e0b\u9762\u7684\u5730\u57fa\u5f00\u59cb\u770b\u8d77\uff1a Filesystem \u5730\u57fa\uff08\u5e95\u5c42\uff09\u7531\u4e00\u6392\u6392\u7684\u6587\u4ef6\u67dc\u7ec4\u6210\uff0c\u4e95\u7136\u6709\u5e8f\uff0c\u6587\u4ef6\u67dc\u91cc\u653e\u7f6e\u7740&ldquo;\u6587\u4ef6&rdquo;&mdash;&mdash;\u7535\u8111\u4e2d\u7684\u6587\u4ef6\u3002\u5de6\u4e0a\u89d2\uff0c\u6709\u4e00\u53ea\u80f8\u524d\u6302\u7740 421 \u53f7\u724c\u7684\u5c0f\u4f01\u9e45\uff0c\u5b83\u8868\u793a\u7740 PID\uff08\u8fdb\u7a0b ID\uff08Process ID\uff09\uff09 \u4e3a 421 \u7684\u8fdb\u7a0b\uff0c\u5b83\u6b63\u5728\u67e5\u770b\u6587\u4ef6\u67dc\u4e2d\u7684\u6587\u4ef6\uff0c\u8fd9\u4ee3\u8868\u7cfb\u7edf\u4e2d\u6b63\u6709\u4e00\u4e2a\u8fdb\u7a0b\u5728\u8bbf\u95ee\u6587\u4ef6\u7cfb\u7edf\u3002\u5728\u53f3\u4e0b\u89d2\u6709\u4e00\u53ea\u5c0f\u72d7\uff0c\u5b83\u662f\u770b\u95e8\u72d7\uff08watchdog\uff09 \uff0c\u8fd9\u4ee3\u8868\u5bf9\u6587\u4ef6\u7cfb\u7edf\u7684\u76d1\u63a7\u3002 &nbsp; \u4e00\u5c42\uff08\u5730\u9762\u5c42\uff09 floor \u770b\u5b8c\u4e86\u5730\u57fa\uff0c\u63a5\u4e0b\u6765\u6211\u4eec\u6765\u770b\u5730\u57fa\u4e0a\u9762\u7684\u4e00\u5c42\uff0c\u90fd\u6709\u54ea\u4e9b\u4e1c\u897f\u3002 Process Table \u5728\u8fd9\u4e00\u5c42\uff0c\u6700\u5f15\u4eba\u77a9\u76ee\u7684\u83ab\u8fc7\u4e8e\u4e2d\u95f4\u7684\u4e00\u5757\u57ab\u5b50\uff0c\u4f17\u591a\u5c0f\u4f01\u9e45\u5728\u56f4\u7740\u7740\u684c\u5b50\u5750\u7740\u3002\u8fd9\u4e2a\u57ab\u5b50\u7684\u533a\u57df\u4ee3\u8868\u8fdb\u7a0b\u8868\u3002 \u5de6\u4e0a\u89d2\u6709\u4e00\u4e2a\u5c0f\u4f01\u9e45\uff0c\u7ad9\u7740\uff0c\u4eff\u4f5b\u5728\u8bf4\u4e9b\u4ec0\u4e48\u8fd9\u663e\u7136\u662f\u4e00\u4f4d\u5bb6\u957f\u5f0f\u7684\u4eba\u7269\uff0c\u4e0d\u8fc7\u770b\u8d77\u6765\u5468\u56f4\u5750\u7684\u90a3\u4e9b\u5c0f\u4f01\u9e45\u4e0d\u662f\u5f88\u542c\u8bdd&mdash;&mdash;\u4f60\u770b\u6709\u597d\u591a\u8d70\u795e\u3001\u81ea\u987e\u81ea\u804a\u5929\u7684&mdash;&mdash;&ldquo;\u5582\u5582\uff0c\u8bf4\u4f60\u5462\uff0c\u54c7\u585e\u5a03\uff08171\uff09\uff0c\u8f6c\u8fc7\u8eab\u6765&rdquo;\u3002\u5b83\u4ee3\u8868\u7740 Linux \u5185\u6838\u4e2d\u7684\u521d\u59cb\u5316\uff08init\uff09\u8fdb\u7a0b\uff0c\u4e5f\u5c31\u662f\u6211\u4eec\u5e38\u8bf4\u7684 PID \u4e3a 1 \u7684\u8fdb\u7a0b\u3002\u684c\u5b50\u4e0a\u5750\u7684\u5c0f\u4f01\u9e45\u90fd\u5728\u7b49\u5f85\u72b6\u6001\uff08wait\uff09\u4e2d\uff0c\u7b49\u5f85\u5de5\u4f5c\u4efb\u52a1\u3002 watchdog \u77a7\u77a7\uff0c\u57ab\u5b50\uff08\u8fdb\u7a0b\u8868\uff09\u65c1\u8fb9\u4e5f\u6709\u4e00\u53ea\u5c0f\u72d7\uff0c\u5b83\u4f1a\u76d1\u63a7\u5c0f\u4f01\u9e45\u7684\u72b6\u6001\uff08\u76d1\u63a7\u8fdb\u7a0b\uff09\uff0c\u5f53\u5c0f\u4f01\u9e45\u4eec\u4e0d\u542c\u8bdd\u65f6\uff0c\u5b83\u5c31\u4f1a\u6c6a\u6c6a\u5730\u53eb\u558a\u8d77\u6765\u3002 httpd process \u5728\u8fd9\u5c42\u7684\u5de6\u4fa7\uff0c\u6709\u4e00\u53ea\u53f7\u724c\u4e3a 1341 \u7684\u5c0f\u4f01\u9e45\uff0c\u5b88\u5728\u95e8\u53e3\uff0c\u95e8\u4e0a\u5199\u7740 80\uff0c\u8bf4\u660e\u8fd9\u4e2a&#8230;<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[7],"tags":[],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/peloo.net\/index.php?rest_route=\/wp\/v2\/posts\/836"}],"collection":[{"href":"https:\/\/peloo.net\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/peloo.net\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/peloo.net\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/peloo.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=836"}],"version-history":[{"count":2,"href":"https:\/\/peloo.net\/index.php?rest_route=\/wp\/v2\/posts\/836\/revisions"}],"predecessor-version":[{"id":838,"href":"https:\/\/peloo.net\/index.php?rest_route=\/wp\/v2\/posts\/836\/revisions\/838"}],"wp:attachment":[{"href":"https:\/\/peloo.net\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=836"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/peloo.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=836"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/peloo.net\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=836"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}