{"id":18014,"date":"2024-03-25T04:15:05","date_gmt":"2024-03-24T20:15:05","guid":{"rendered":"https:\/\/www.linuxcool.com\/lxtglybbsdgj"},"modified":"2024-03-25T04:15:05","modified_gmt":"2024-03-24T20:15:05","slug":"lxtglybbsdgj","status":"publish","type":"post","link":"https:\/\/www.linuxcool.com\/lxtglybbsdgj","title":{"rendered":"Linux\u7cfb\u7edf\u7ba1\u7406\u5458\u5fc5\u5907\uff1a\u56db\u5927\u5173\u673a\/\u91cd\u542f\u6307\u4ee4\u63ed\u79d8"},"content":{"rendered":"<p style='margin-bottom:16px;color:#555555;font-size:16px;line-height:200%;text-indent:2em'><a style='color:#0000CC' href='https:\/\/www.linuxprobe.com\/' target='_blank' rel=\"noopener\">Linux<\/a>\u64cd\u4f5c<a style='color:#0000CC' href='https:\/\/www.linuxdown.com\/' target='_blank' rel=\"noopener\">\u7cfb\u7edf<\/a>\u5e95\u5c42\u7535\u6e90\u7ba1\u7406\u7684\u63a7\u5236\u6307\u4ee4\u5373\u81f3\u5173\u91cd\u8981\u7684\u5173\u673a\u4e0e\u5f00\u673a\u6307\u4ee4linux\u662f\u4ec0\u4e48\uff0c\u662f\u7ef4\u62a4\u548c\u7ba1\u7406\u7cfb\u7edf\u5065\u5eb7\u8fd0\u884c\u7684\u6838\u5fc3\u6280\u672f\u3002\u4f5c\u4e3a\u8d44\u6df1\u7cfb\u7edf\u7ba1\u7406\u5458\uff0c\u6211\u5177\u6709\u4e30\u5bcc\u7ecf\u9a8c\u5e76\u5bf9\u5176\u6709\u7740\u6df1\u5165\u7406\u89e3\u3002\u4eca\u5929\uff0c\u6211\u8363\u5e78\u5730\u4e0e\u5927\u5bb6\u5206\u4eab\u56db\u4e2a\u5e38\u89c1\u7684Linux\u5173\u673a\/\u91cd\u542f\u6307\u4ee4\u53ca\u5176\u76f8\u5173\u5b9e\u7528\u6280\u5de7\u4e0e\u64cd\u4f5c\u8981\u70b9\u3002<\/p>\n<p style='margin-bottom:16px;color:#555555;font-size:16px;line-height:200%;text-indent:2em'><b>\u4e00\u3001shutdown<a style='color:#0000CC' href='https:\/\/www.linuxcool.com\/' target='_blank' rel=\"noopener\">\u547d\u4ee4<\/a><\/b><\/p>\n<p style='margin-bottom:16px;color:#555555;font-size:16px;line-height:200%;text-indent:2em'>\u901a\u8fc7\u4f7f\u7528shutdown\u547d\u4ee4\uff0c\u60a8\u53ef\u4ee5\u5b89\u5168\u3001\u5feb\u6377\u5730\u5b8c\u6210\u5173\u673a\u64cd\u4f5c\u3002\u6b64\u547d\u4ee4\u5177\u6709\u7b80\u6d01\u660e\u4e86\u7684\u683c\u5f0f\u548c\u4e30\u5bcc\u591a\u6837\u7684\u9009\u9879\u3002\u8fd9\u6837\u7ea2\u65d7linux\u684c\u9762\u7248\uff0c\u65e0\u8bba\u662f\u6267\u884c\u9884\u5b9a\u5173\u673a\u4efb\u52a1\uff0c\u8fd8\u662f\u7acb\u5373\u6216\u7a0d\u540e\u8fdb\u884c\u5f00\u5173\u673a\u90fd\u53d8\u5f97\u8f7b\u800c\u6613\u4e3e\u3002\u4f8b\u5982\uff0c\u5047\u5982\u9700\u8981\u572810\u5206\u949f\u540e\u5173\u95ed\u7cfb\u7edf\uff0c\u53ea\u9700\u586b\u5165\u4e0b\u5217\u6307\u4ee4\uff1a<\/p>\n<p style='margin-bottom:16px;color:#555555;font-size:16px;line-height:200%;text-indent:2em'>sudo shutdown -h+10<\/p>\n<p style='margin-bottom:16px;color:#555555;font-size:16px;line-height:200%;text-indent:2em'>\u6267\u884c\u6b64\u64cd\u4f5c\u53ef\u5c06\u5b9e\u65f6\u65f6\u949f\u8c03\u6574\u4e3a\u589e\u52a0\u5341\u5206\u949f\u540e\u7684\u65f6\u95f4\u70b9\uff0c\u89e6\u53d1\u5230\u65f6\u5173\u673a\u6d41\u7a0b\u3002\u6b64\u5916\uff0c\u672c\u6307\u4ee4\u8fd8\u5305\u62ec\u91cd\u542f\u53ca\u53d1\u9001\u7cfb\u7edf\u8b66\u544a\u4fe1\u606f\u7b49\u8bbe\u7f6e\u3002<\/p>\n<p style='margin-bottom:16px;color:#555555;font-size:16px;line-height:200%;text-indent:2em'><b>\u4e8c\u3001reboot\u547d\u4ee4<\/b><\/p>\n<p style='margin-bottom:16px;color:#555555;font-size:16px;line-height:200%;text-indent:2em'>linux\u64cd\u4f5c\u7cfb\u7edf\u4e2d\uff0cshutdown\u547d\u4ee4\u4f5c\u4e3a\u57fa\u672c\u7684\u91cd\u542f\u5de5\u5177\uff0c\u53ea\u9700\u8f93\u5165\u7b80\u5355\u7684\u547d\u4ee4\u6587\uff0c\u5373\u53ef\u8fc5\u901f\u6709\u6548\u5730\u5b9e\u73b0\u7cfb\u7edf\u91cd\u542f\u3002<\/p>\n<p style='margin-bottom:16px;color:#555555;font-size:16px;line-height:200%;text-indent:2em'>\u91cd\u542f\u6307\u4ee4\u4ee5\u5176\u7b80\u5355\u9ad8\u6548\u800c\u8457\u79f0\uff0c\u9002\u7528\u4e8e\u5404\u7c7b\u91cd\u542f\u64cd\u4f5c\u3002\u7136\u800c\uff0c\u7279\u6b8a\u60c5\u51b5\u9700\u66f4\u4e3a\u7cbe\u7ec6\u5730\u628a\u63e1\u91cd\u542f\u6d41\u7a0b\u3002<\/p>\n<p style='margin-bottom:16px;color:#555555;font-size:16px;line-height:200%;text-indent:2em'><b>\u4e09\u3001systemctl\u547d\u4ee4<\/b><\/p>\n<p style='margin-bottom:16px;color:#555555;font-size:16px;line-height:200%;text-indent:2em'>\u521b\u65b0\u578bLinux\u53d1\u884c\u7248\u5f15\u5165\u4e86systemctl\u6307\u4ee4\uff0c\u4e3a\u5f3a\u5927\u7684\u7cfb\u7edf\u7ba1\u7406\u589e\u6dfb\u4e86\u9644\u52a0\u9009\u9879\u3002\u501f\u52a9\u6b64\uff0c\u6211\u4eec\u5f97\u4ee5\u6df1\u5ea6\u63a7\u5236\u5404\u7c7b\u7cfb\u7edf\u670d\u52a1\uff0c\u5305\u62ec\u5173\u673a\u4e0e\u91cd\u542f\u8fd9\u6837\u7684\u5173\u952e\u64cd\u4f5c\u3002<\/p>\n<p style='margin-bottom:16px;color:#555555;font-size:16px;line-height:200%;text-indent:2em'>\u8981\u5b9e\u73b0\u5173\u673a\u64cd\u4f5c\uff0c\u6211\u4eec\u53ef\u4ee5\u4f7f\u7528\u4ee5\u4e0b\u547d\u4ee4\uff1a<\/p>\n<p style='margin-bottom:16px;color:#555555;font-size:16px;line-height:200%;text-indent:2em'><img style='max-height:350px;max-width:80%;margin: 10px auto' src='https:\/\/www.linuxcool.com\/wp-content\/uploads\/2024\/03\/1711311304482_1.png' alt='Linux\u5173\u673a\u91cd\u542f\u547d\u4ee4_linux\u5173\u673a\u91cd\u542f\u547d\u4ee4_\u5173\u673a\u91cd\u542f\u547d\u4ee4' \/><\/p>\n<p style='margin-bottom:16px;color:#555555;font-size:16px;line-height:200%;text-indent:2em'>sudo systemctl poweroff<\/p>\n<p style='margin-bottom:16px;color:#555555;font-size:16px;line-height:200%;text-indent:2em'>\u800c\u5b9e\u73b0\u91cd\u542f\u64cd\u4f5c\u5219\u53ef\u4ee5\u4f7f\u7528\u4ee5\u4e0b\u547d\u4ee4\uff1a<\/p>\n<p style='margin-bottom:16px;color:#555555;font-size:16px;line-height:200%;text-indent:2em'>sudo systemctl reboot<\/p>\n<p style='margin-bottom:16px;color:#555555;font-size:16px;line-height:200%;text-indent:2em'>systemctl\u4e0d\u4ec5\u5177\u5907\u6df1\u5ea6\u7684\u7cfb\u7edf\u72b6\u6001\u4fe1\u606f\u67e5\u8be2\u80fd\u529b\uff0c\u66f4\u63d0\u4f9b\u5b8c\u5584\u7684\u670d\u52a1\u7ba1\u63a7\u673a\u5236\uff0c\u52a9\u529b\u7528\u6237\u9ad8\u6548\u5e94\u5bf9\u590d\u6742\u73af\u5883\u3002<\/p>\n<p style='margin-bottom:16px;color:#555555;font-size:16px;line-height:200%;text-indent:2em'><b>\u56db\u3001halt\u547d\u4ee4<\/b><\/p>\n<p style='margin-bottom:16px;color:#555555;font-size:16px;line-height:200%;text-indent:2em'>&#8221; halt &#8220;\u662f\u5e38\u89c1\u7684\u5173\u673a\u6307\u4ee4\u4e4b\u4e00\uff0c\u5177\u6709\u4e0e&#8221; shutdown &#8220;\u7c7b\u4f3c\u7684\u529f\u80fd\u3002\u53ea\u9700\u8f7b\u677e\u8f93\u5165\u76f8\u5173\u547d\u4ee4\uff0c\u4fbf\u80fd\u7acb\u5373\u5b9e\u73b0\u5173\u673a\u64cd\u4f5c\u3002<\/p>\n<p style='margin-bottom:16px;color:#555555;font-size:16px;line-height:200%;text-indent:2em'>\u5728\u7d27\u6025\u60c5\u51b5\u4e0b\u4f7f\u7cfb\u7edf\u505c\u673a\u5e76\u6e05\u7a7a\u6240\u6709\u8fd0\u884c\u7a0b\u5e8f\u65f6\uff0chalted\u6307\u4ee4\u80fd\u591f\u5feb\u901f\u6709\u6548\u5730\u5b9e\u73b0\u8fd9\u4e00\u76ee\u6807\u3002\u968f\u540e\uff0c\u6211\u4eec\u53ef\u4ee5\u5b89\u5fc3\u5730\u5207\u65ad\u8ba1\u7b97\u673a\u7535\u6e90\u3002\u4e0eshutdown\u547d\u4ee4\u76f8\u6bd4\uff0chalt\u547d\u4ee4\u66f4\u4e3a\u76f4\u63a5\u4e14\u9002\u7528\u4e8e\u7d27\u6025\u72b6\u6001\u7684\u5904\u7406\u3002<\/p>\n<p style='margin-bottom:16px;color:#555555;font-size:16px;line-height:200%;text-indent:2em'><b>\u4e94\u3001init\u547d\u4ee4<\/b><\/p>\n<p style='margin-bottom:16px;color:#555555;font-size:16px;line-height:200%;text-indent:2em'>\u5c3d\u7ba1\u5728\u73b0\u4ee3Linux\u7cfb\u7edf\u4e2d<strong>linux\u5173\u673a\u91cd\u542f\u547d\u4ee4<\/strong>\uff0csystemctl\u6307\u4ee4\u9010\u6e10\u53d6\u4ee3\u4e86\u65e9\u671finit\u6307\u4ee4\u4f5c\u4e3a\u5173\u673a\u548c\u91cd\u542f\u7684\u4e3b\u8981\u5de5\u5177\u3002\u7136\u800c\uff0cinit\u6307\u4ee4\u4f9d\u7136\u4fdd\u7559\u7740\u5b83\u6240\u62e5\u6709\u7684\u91cd\u8981\u4f5c\u7528\u3002<\/p>\n<p style='margin-bottom:16px;color:#555555;font-size:16px;line-height:200%;text-indent:2em'>sudo init 6<\/p>\n<p style='margin-bottom:16px;color:#555555;font-size:16px;line-height:200%;text-indent:2em'><img style='max-height:350px;max-width:80%;margin: 10px auto' src='https:\/\/www.linuxcool.com\/wp-content\/uploads\/2024\/03\/1711311304482_2.png' alt='\u5173\u673a\u91cd\u542f\u547d\u4ee4_Linux\u5173\u673a\u91cd\u542f\u547d\u4ee4_linux\u5173\u673a\u91cd\u542f\u547d\u4ee4' \/><\/p>\n<p style='margin-bottom:16px;color:#555555;font-size:16px;line-height:200%;text-indent:2em'>\u5c3d\u7ba1`init`\u547d\u4ee4\u8fd0\u7528\u8f83\u4e3a\u7e41\u7410\uff0c\u4f46\u5728\u67d0\u4e9b\u7279\u6b8a\u573a\u666f\u4e2d\u4ecd\u582a\u79f0\u53ef\u9760\u4e4b\u9009\u3002<\/p>\n<p style='margin-bottom:16px;color:#555555;font-size:16px;line-height:200%;text-indent:2em'><b>\u516d\u3001\u603b\u7ed3<\/b><\/p>\n<p style='margin-bottom:16px;color:#555555;font-size:16px;line-height:200%;text-indent:2em'>\u591a\u79cdLinux\u5173\u673a\u91cd\u542f\u6307\u4ee4\u5177\u5907\u72ec\u7279\u4f18\u52bf\u548c\u9002\u7528\u573a\u666f\u3002\u4f8b\u5982\uff0cshutdown\u6307\u4ee4\u6613\u4e8e\u64cd\u63a7\uff0c\u5229\u4e8e\u65e5\u5e38\u8fd0\u4f5c\u4e0e\u7ef4\u62a4\uff1breboot\u547d\u4ee4\u7b80\u6d01\u9ad8\u6548\uff0c\u9002\u7528\u4e8e\u5feb\u901f\u542f\u52a8\uff1bsystemctl\u6307\u4ee4\u5177\u6709\u591a\u5143\u7279\u6027\u4e0e\u9ad8\u7ea7\u529f\u80fd\uff0c\u9002\u5408\u4e13\u4e1a\u7ea7\u522b\u7684\u7cfb\u7edf\u7ba1\u7406\u9700\u8981\uff1bhalt\u547d\u4ee4\u76f4\u622a\u4e86\u5f53\uff0c\u4f5c\u4e3a\u5e94\u6025\u5173\u673a\u9996\u9009\uff1b\u800cinit\u6307\u4ee4\u867d\u76f8\u5bf9\u7e41\u7410\uff0c\u4f46\u5728\u67d0\u4e9b\u7279\u5b9a\u60c5\u5883\u4e0b\u4ea6\u6709\u6240\u5e2e\u52a9\u3002<\/p>\n<p style='margin-bottom:16px;color:#555555;font-size:16px;line-height:200%;text-indent:2em'>\u56e0\u6b64\uff0c\u5728\u6267\u884c\u5173\u673a\u6216\u91cd\u542f\u547d\u4ee4\u4e4b\u524d\uff0c\u52a1\u5fc5\u7ed3\u5408\u5177\u4f53\u9700\u6c42\u548c\u7cfb\u7edf\u73af\u5883\uff0c\u4ee5\u9009\u53d6\u6700\u4f18\u7b56\u7565\u3002\u540c\u65f6\uff0c\u5f3a\u70c8\u5efa\u8bae\u5145\u5206\u638c\u63e1\u76f8\u5173\u547d\u4ee4\u53ca\u5176\u9009\u9879\u53c2\u6570<strong>linux\u5173\u673a\u91cd\u542f\u547d\u4ee4<\/strong>\uff0c\u4e25\u683c\u9075\u5faa\u5b89\u5168\u64cd\u4f5c\u539f\u5219\uff0c\u4fdd\u8bc1\u7cfb\u7edf\u5e73\u7a33\u8fd0\u8f6c\u3002<\/p>\n<p style='margin-bottom:16px;color:#555555;font-size:16px;line-height:200%;text-indent:2em'>\u672c\u6b21\u8bc4\u6d4b\u603b\u7ed3\u65e8\u5728\u5e2e\u52a9\u60a8\u5728Linux\u7cfb\u7edf\u64cd\u4f5c\u4e2d\u5145\u5206\u53d1\u6325\u5176\u6548\u7528\u3002\u5c3d\u7ba1\u5173\u673a\u548c\u91cd\u542f\u6307\u4ee4\u770b\u4f3c\u7b80\u5355\uff0c\u4f46\u5b83\u4eec\u5374\u662f\u7cfb\u7edf\u7ef4\u62a4\u4e2d\u7684\u91cd\u8981\u73af\u8282\u3002\u80fd\u591f\u7cbe\u786e\u638c\u63e1\u8fd9\u4e9b\u6307\u4ee4\uff0c\u5c06\u6709\u52a9\u4e8e\u6211\u4eec\u6709\u6548\u5730\u7ba1\u7406\u7cfb\u7edf\uff0c\u63d0\u5347\u5de5\u4f5c\u6548\u7387\u3002<\/p>\n<p style='margin-bottom:16px;color:#555555;font-size:16px;line-height:200%;text-indent:2em'><img style='max-height:350px;max-width:80%;margin: 10px auto' src='https:\/\/www.linuxcool.com\/wp-content\/uploads\/2024\/03\/1711311304482_3.png' alt='linux\u5173\u673a\u91cd\u542f\u547d\u4ee4_Linux\u5173\u673a\u91cd\u542f\u547d\u4ee4_\u5173\u673a\u91cd\u542f\u547d\u4ee4' \/><\/p>\n<p style='margin-bottom:16px;color:#555555;font-size:16px;line-height:200%;text-indent:2em'><b>\u53c2\u8003\u8d44\u6599\uff1a<\/b><\/p>\n<p style='margin-bottom:16px;color:#555555;font-size:16px;line-height:200%;text-indent:2em'>\/man\/8\/shutdown<\/p>\n<p style='margin-bottom:16px;color:#555555;font-size:16px;line-height:200%;text-indent:2em'>\u67e5\u9605Linux\u64cd\u4f5c\u7cfb\u7edf\u624b\u518c\u7b2c8\u7ae0\u8282\uff0c\u6df1\u5165\u7406\u89e3reboot\u547d\u4ee4\u76f8\u5173\u77e5\u8bc6\u3002<\/p>\n<p style='margin-bottom:16px;color:#555555;font-size:16px;line-height:200%;text-indent:2em'>\u8bf7\u67e5\u9605\u5b98\u65b9Linux\u7cfb\u7edf\u7ba1\u7406\u547d\u4ee4\u6307\u5bfc\u624b\u518c\uff1a\u3002<\/p>\n<p style='margin-bottom:16px;color:#555555;font-size:16px;line-height:200%;text-indent:2em'>\u8bf7\u53c2\u8003\u94fe\u63a5\uff1a \uff08\u5728\u6d4f\u89c8\u5668\u4e2d\u6253\u5f00\uff09\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Linux\u64cd\u4f5c\u7cfb\u7edf\u5e95\u5c42\u7535\u6e90\u7ba1\u7406\u7684\u63a7\u5236\u6307\u4ee4\u5373\u81f3\u5173\u91cd\u8981\u7684\u5173\u673a\u4e0e\u5f00\u673a\u6307\u4ee4\uff0c\u662f\u7ef4\u62a4\u548c\u7ba1\u7406\u7cfb\u7edf\u5065\u5eb7\u8fd0\u884c\u7684\u6838\u5fc3\u6280\u672f\u3002linux\u64cd\u4f5c\u7cfb\u7edf\u4e2d\uff0cshutdown\u547d\u4ee4\u4f5c\u4e3a\u57fa\u672c\u7684\u91cd\u542f\u5de5\u5177\uff0c\u53ea\u9700\u8f93\u5165\u7b80\u5355\u7684\u547d\u4ee4\u6587\uff0c\u5373\u53ef\u8fc5\u901f\u6709\u6548\u5730\u5b9e\u73b0\u7cfb\u7edf\u91cd\u542f\u3002\u5c3d\u7ba1\u5173\u673a\u548c\u91cd\u542f\u6307\u4ee4\u770b\u4f3c\u7b80\u5355\uff0c\u4f46\u5b83\u4eec\u5374\u662f\u7cfb\u7edf\u7ef4\u62a4\u4e2d\u7684\u91cd\u8981\u73af\u8282\u3002<\/p>\n","protected":false},"author":1,"featured_media":18015,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[10],"tags":[70,37,686,40,72],"class_list":["post-18014","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-knowledge","tag-gj","tag-ml","tag-zl","tag-cz","tag-cq"],"_links":{"self":[{"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/posts\/18014","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/comments?post=18014"}],"version-history":[{"count":0,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/posts\/18014\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/media\/18015"}],"wp:attachment":[{"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/media?parent=18014"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/categories?post=18014"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/tags?post=18014"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}