{"id":18355,"date":"2024-11-18T11:36:20","date_gmt":"2024-11-18T03:36:20","guid":{"rendered":"https:\/\/fwq.ai\/blog\/18355\/"},"modified":"2024-11-18T11:36:20","modified_gmt":"2024-11-18T03:36:20","slug":"linux%e6%80%8e%e4%b9%88%e5%85%b3%e9%97%ad%e6%89%80%e6%9c%89%e8%bf%9b%e7%a8%8b","status":"publish","type":"post","link":"https:\/\/fwq.ai\/blog\/18355\/","title":{"rendered":"linux\u600e\u4e48\u5173\u95ed\u6240\u6709\u8fdb\u7a0b"},"content":{"rendered":"<h2>\u5982\u4f55\u5173\u95ed\u6240\u6709 Linux \u8fdb\u7a0b<\/h2>\n<p>\u5728  \u7cfb\u7edf\u4e2d\uff0c\u5173\u95ed\u6240\u6709\u8fdb\u7a0b\u53ef\u4ee5\u91ca\u653e\u8d44\u6e90\uff0c\u89e3\u51b3\u7cfb\u7edf\u95ee\u9898\uff0c\u6216\u4e3a\u65b0\u4efb\u52a1\u817e\u51fa\u7a7a\u95f4\u3002<\/p>\n<p><strong>\u4f7f\u7528\u547d\u4ee4\u884c\u5173\u95ed\u6240\u6709\u8fdb\u7a0b<\/strong><\/p>\n<pre>killall -9<\/pre>\n<p> \u767b\u5f55\u540e\u590d\u5236 <\/p>\n<p>\u6b64\u547d\u4ee4\u5c06\u7ec8\u6b62\u6240\u6709\u7528\u6237\u7a7a\u95f4\u8fdb\u7a0b\uff08\u5373\u9664\u5185\u6838\u8fdb\u7a0b\u4e4b\u5916\u7684\u6240\u6709\u8fdb\u7a0b\uff09\uff0c\u5305\u62ec\u7531\u5176\u4ed6\u7528\u6237\u542f\u52a8\u7684\u8fdb\u7a0b\u3002<\/p>\n<p><strong>\u4f7f\u7528\u7cfb\u7edf\u8c03\u7528\u5173\u95ed\u6240\u6709\u8fdb\u7a0b<\/strong><\/p>\n<pre>reboot<\/pre>\n<p> \u767b\u5f55\u540e\u590d\u5236 <\/p>\n<p>\u6b64\u547d\u4ee4\u5c06\u91cd\u65b0\u542f\u52a8\u7cfb\u7edf\uff0c\u5f3a\u5236\u7ec8\u6b62\u6240\u6709\u6b63\u5728\u8fd0\u884c\u7684\u8fdb\u7a0b\u3002<\/p>\n<p><strong>\u4f7f\u7528 init \u811a\u672c\u5173\u95ed\u6240\u6709\u8fdb\u7a0b<\/strong><\/p>\n<pre>init 0<\/pre>\n<p> \u767b\u5f55\u540e\u590d\u5236 <\/p>\n<p>\u6b64\u547d\u4ee4\u5c06\u7ec8\u6b62\u6240\u6709\u8fdb\u7a0b\uff0c\u5c06\u7cfb\u7edf\u7f6e\u4e8e\u5355\u7528\u6237\u6a21\u5f0f\u3002<\/p>\n<p><strong>\u5176\u4ed6\u6ce8\u610f\u4e8b\u9879<\/strong><\/p>\n<ul>\n<li>\u4f7f\u7528 killall -9 \u547d\u4ee4\u65f6\u8981\u5c0f\u5fc3\uff0c\u56e0\u4e3a\u5b83\u4f1a\u7acb\u5373\u7ec8\u6b62\u6240\u6709\u8fdb\u7a0b\uff0c\u53ef\u80fd\u5bfc\u81f4\u3002<\/li>\n<li>\u7cfb\u7edf\u8c03\u7528 reboot \u4f1a\u91cd\u65b0\u542f\u52a8\u7cfb\u7edf\uff0c\u56e0\u6b64\u5728\u4f7f\u7528\u5b83\u4e4b\u524d\u8bf7\u786e\u4fdd\u5df2\u4fdd\u5b58\u6240\u6709\u5de5\u4f5c\u3002<\/li>\n<li>init 0 \u547d\u4ee4\u5c06\u4f7f\u7cfb\u7edf\u8fdb\u5165\u5355\u7528\u6237\u6a21\u5f0f\uff0c\u5728\u6b64\u6a21\u5f0f\u4e0b\uff0c\u60a8\u5c06\u65e0\u6cd5\u4f7f\u7528\u56fe\u5f62\u754c\u9762\u6216\u7f51\u7edc\u3002<\/li>\n<\/ul>\n<p>\u4ee5\u4e0a\u5c31\u662f\u600e\u4e48\u5173\u95ed\u6240\u6709\u8fdb\u7a0b\u7684\u8be6\u7ec6\u5185\u5bb9\uff0c\u66f4\u591a\u8bf7\u5173\u6ce8\u7c73\u4e91\u5176\u5b83\u76f8\u5173\u6587\u7ae0\uff01<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u5982\u4f55\u5173\u95ed\u6240\u6709 Linux \u8fdb\u7a0b \u5728 \u7cfb\u7edf\u4e2d\uff0c\u5173\u95ed\u6240\u6709\u8fdb\u7a0b\u53ef\u4ee5\u91ca\u653e\u8d44\u6e90\uff0c\u89e3\u51b3\u7cfb\u7edf\u95ee\u9898\uff0c\u6216\u4e3a\u65b0\u4efb\u52a1\u817e\u51fa\u7a7a\u95f4\u3002 \u4f7f\u7528\u547d\u4ee4\u884c\u5173\u95ed\u6240\u6709\u8fdb\u7a0b killall -9 \u767b\u5f55\u540e\u590d\u5236 \u6b64\u547d\u4ee4\u5c06\u7ec8\u6b62\u6240\u6709\u7528\u6237\u7a7a\u95f4\u8fdb\u7a0b\uff08\u5373\u9664\u5185\u6838\u8fdb\u7a0b\u4e4b\u5916\u7684\u6240\u6709\u8fdb\u7a0b\uff09\uff0c\u5305\u62ec\u7531\u5176\u4ed6\u7528\u6237\u542f\u52a8\u7684\u8fdb\u7a0b\u3002 \u4f7f\u7528\u7cfb\u7edf\u8c03\u7528\u5173\u95ed\u6240\u6709\u8fdb\u7a0b reboot \u767b\u5f55\u540e\u590d\u5236 \u6b64\u547d\u4ee4\u5c06\u91cd\u65b0\u542f\u52a8\u7cfb\u7edf\uff0c\u5f3a\u5236\u7ec8\u6b62\u6240\u6709\u6b63\u5728\u8fd0\u884c\u7684\u8fdb\u7a0b\u3002 \u4f7f\u7528 init \u811a\u672c\u5173\u95ed\u6240\u6709\u8fdb\u7a0b init 0 \u767b\u5f55\u540e\u590d\u5236 \u6b64\u547d\u4ee4\u5c06\u7ec8\u6b62\u6240\u6709\u8fdb\u7a0b\uff0c\u5c06\u7cfb\u7edf\u7f6e\u4e8e\u5355\u7528\u6237\u6a21\u5f0f\u3002 \u5176\u4ed6\u6ce8\u610f\u4e8b\u9879 \u4f7f\u7528 killall -9 \u547d\u4ee4\u65f6\u8981\u5c0f\u5fc3\uff0c\u56e0\u4e3a\u5b83\u4f1a\u7acb\u5373\u7ec8\u6b62\u6240\u6709\u8fdb\u7a0b\uff0c\u53ef\u80fd\u5bfc\u81f4\u3002 \u7cfb\u7edf\u8c03\u7528 reboot \u4f1a\u91cd\u65b0\u542f\u52a8\u7cfb\u7edf\uff0c\u56e0\u6b64\u5728\u4f7f\u7528\u5b83\u4e4b\u524d\u8bf7\u786e\u4fdd\u5df2\u4fdd\u5b58\u6240\u6709\u5de5\u4f5c\u3002 init 0 \u547d\u4ee4\u5c06\u4f7f\u7cfb\u7edf\u8fdb\u5165\u5355\u7528\u6237\u6a21\u5f0f\uff0c\u5728\u6b64\u6a21\u5f0f\u4e0b\uff0c\u60a8\u5c06\u65e0\u6cd5\u4f7f\u7528\u56fe\u5f62\u754c\u9762\u6216\u7f51\u7edc\u3002 \u4ee5\u4e0a\u5c31\u662f\u600e\u4e48\u5173\u95ed\u6240\u6709\u8fdb\u7a0b\u7684\u8be6\u7ec6\u5185\u5bb9\uff0c\u66f4\u591a\u8bf7\u5173\u6ce8\u7c73\u4e91\u5176\u5b83\u76f8\u5173\u6587\u7ae0\uff01<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[8],"tags":[],"class_list":["post-18355","post","type-post","status-publish","format-standard","hentry","category-os"],"_links":{"self":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/posts\/18355","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/comments?post=18355"}],"version-history":[{"count":0,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/posts\/18355\/revisions"}],"wp:attachment":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/media?parent=18355"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/categories?post=18355"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/tags?post=18355"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}