{"id":210594,"date":"2023-12-22T06:25:14","date_gmt":"2023-12-21T22:25:14","guid":{"rendered":"https:\/\/www.idc.net\/help\/210594\/"},"modified":"2023-12-22T06:25:14","modified_gmt":"2023-12-21T22:25:14","slug":"linux-%e5%91%bd%e4%bb%a4%ef%bc%9areboot-%e9%87%8d%e5%90%af%e7%b3%bb%e7%bb%9f","status":"publish","type":"post","link":"https:\/\/idc.net\/help\/210594\/","title":{"rendered":"Linux \u547d\u4ee4\uff1areboot &#8211; \u91cd\u542f\u7cfb\u7edf"},"content":{"rendered":"<p>  <title id=\"linux-%e5%91%bd%e4%bb%a4%ef%bc%9areboot-%e9%87%8d%e5%90%af%e7%b3%bb%e7%bb%9f-agFtRDhEfE\">Linux \u547d\u4ee4\uff1areboot - \u91cd\u542f\u7cfb\u7edf<\/title><\/p>\n<h1 id=\"linux-%e5%91%bd%e4%bb%a4%ef%bc%9areboot-%e9%87%8d%e5%90%af%e7%b3%bb%e7%bb%9f-agFtRDhEfE\">Linux \u547d\u4ee4\uff1areboot - \u91cd\u542f\u7cfb\u7edf<\/h1>\n<h2 id=\"%e4%bb%8b%e7%bb%8d-agFtRDhEfE\">\u4ecb\u7ecd<\/h2>\n<p>\u5728Linux\u7cfb\u7edf\u4e2d\uff0creboot\u547d\u4ee4\u7528\u4e8e\u91cd\u542f\u8ba1\u7b97\u673a\u3002\u5f53\u4f60\u9700\u8981\u91cd\u65b0\u542f\u52a8\u7cfb\u7edf\u65f6\uff0c\u53ef\u4ee5\u4f7f\u7528\u8be5\u547d\u4ee4\u6765\u5b9e\u73b0\u3002<\/p>\n<h2 id=\"%e8%af%ad%e6%b3%95-agFtRDhEfE\">\u8bed\u6cd5<\/h2>\n<p>reboot\u547d\u4ee4\u7684\u57fa\u672c\u8bed\u6cd5\u5982\u4e0b\uff1a<\/p>\n<pre><code>reboot [\u9009\u9879]<\/code><\/pre>\n<h2 id=\"%e9%80%89%e9%a1%b9-agFtRDhEfE\">\u9009\u9879<\/h2>\n<ul>\n<li><code>-f<\/code>\uff1a\u5f3a\u5236\u91cd\u542f\uff0c\u5ffd\u7565\u4efb\u4f55\u6b63\u5728\u8fd0\u884c\u7684\u7a0b\u5e8f\u3002<\/li>\n<li><code>-h<\/code>\uff1a\u5173\u673a\u5e76\u91cd\u542f\u7cfb\u7edf\u3002<\/li>\n<li><code>-n<\/code>\uff1a\u4e0d\u8981\u5411init\u8fdb\u7a0b\u53d1\u9001\u91cd\u542f\u4fe1\u53f7\uff0c\u800c\u662f\u76f4\u63a5\u8c03\u7528reboot\u7cfb\u7edf\u8c03\u7528\u3002<\/li>\n<li><code>-w<\/code>\uff1a\u4e0d\u8981\u771f\u6b63\u91cd\u542f\u7cfb\u7edf\uff0c\u53ea\u662f\u5c06\u91cd\u542f\u4fe1\u606f\u5199\u5165\/var\/log\/wtmp\u6587\u4ef6\u3002<\/li>\n<\/ul>\n<h2 id=\"%e7%a4%ba%e4%be%8b-agFtRDhEfE\">\u793a\u4f8b<\/h2>\n<p>\u4ee5\u4e0b\u662f\u4e00\u4e9breboot\u547d\u4ee4\u7684\u793a\u4f8b\uff1a<\/p>\n<pre><code>$ reboot\n$ reboot -f\n$ reboot -h\n$ reboot -n\n$ reboot -w<\/code><\/pre>\n<h2 id=\"%e6%b3%a8%e6%84%8f%e4%ba%8b%e9%a1%b9-agFtRDhEfE\">\u6ce8\u610f\u4e8b\u9879<\/h2>\n<p>\u5728\u4f7f\u7528reboot\u547d\u4ee4\u4e4b\u524d\uff0c\u8bf7\u786e\u4fdd\u4f60\u5df2\u4fdd\u5b58\u5e76\u5173\u95ed\u6240\u6709\u6b63\u5728\u8fd0\u884c\u7684\u7a0b\u5e8f\u548c\u6587\u4ef6\u3002\u91cd\u542f\u7cfb\u7edf\u5c06\u5bfc\u81f4\u6240\u6709\u672a\u4fdd\u5b58\u7684\u66f4\u6539\u4e22\u5931\u3002<\/p>\n<h2 id=\"%e7%bb%93%e8%ae%ba-agFtRDhEfE\">\u7ed3\u8bba<\/h2>\n<p>reboot\u547d\u4ee4\u662fLinux\u7cfb\u7edf\u4e2d\u7528\u4e8e\u91cd\u542f\u8ba1\u7b97\u673a\u7684\u5e38\u7528\u547d\u4ee4\u3002\u901a\u8fc7\u4f7f\u7528\u4e0d\u540c\u7684\u9009\u9879\uff0c\u4f60\u53ef\u4ee5\u63a7\u5236\u91cd\u542f\u7684\u884c\u4e3a\u3002\u5728\u4f7f\u7528\u8be5\u547d\u4ee4\u4e4b\u524d\uff0c\u8bf7\u786e\u4fdd\u4f60\u5df2\u7ecf\u4fdd\u5b58\u5e76\u5173\u95ed\u4e86\u6240\u6709\u9700\u8981\u4fdd\u5b58\u7684\u6587\u4ef6\u548c\u7a0b\u5e8f\u3002<\/p>\n<h2 id=\"summary-section-agFtRDhEfE\">Summary Section<\/h2>\n<p>\u9999\u6e2f\u670d\u52a1\u5668\u9996\u9009\u540e\u6d6a\u4e91\uff0c\u63d0\u4f9b\u53ef\u9760\u7684\u4e91\u8ba1\u7b97\u670d\u52a1\u3002\u5982\u679c\u4f60\u9700\u8981\u7a33\u5b9a\u7684\u9999\u6e2f\u670d\u52a1\u5668\uff0c\u4e0d\u59a8\u8003\u8651\u540e\u6d6a\u4e91\u7684\u4ea7\u54c1\u3002\u540e\u6d6a\u4e91\u8fd8\u63d0\u4f9b10\u5143\u9999\u6e2f\u670d\u52a1\u5668\u548c\u9999\u6e2f\u670d\u52a1\u5668\u514d\u8d39\u8bd5\u7528\uff0c\u6b22\u8fce\u8bbf\u95ee<a href=\"https:\/\/idc.net\">\u5b98\u7f51<\/a>\u4e86\u89e3\u66f4\u591a\u8be6\u60c5\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Linux \u547d\u4ee4\uff1areboot - \u91cd\u542f\u7cfb\u7edf Linux \u547d\u4ee4\uff1areboot - \u91cd\u542f\u7cfb\u7edf \u4ecb\u7ecd \u5728Linux [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"","ping_status":"","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[27],"tags":[],"class_list":["post-210594","post","type-post","status-publish","format-standard","hentry","category-centos"],"_links":{"self":[{"href":"https:\/\/idc.net\/help\/wp-json\/wp\/v2\/posts\/210594","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/idc.net\/help\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/idc.net\/help\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/idc.net\/help\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/idc.net\/help\/wp-json\/wp\/v2\/comments?post=210594"}],"version-history":[{"count":0,"href":"https:\/\/idc.net\/help\/wp-json\/wp\/v2\/posts\/210594\/revisions"}],"wp:attachment":[{"href":"https:\/\/idc.net\/help\/wp-json\/wp\/v2\/media?parent=210594"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/idc.net\/help\/wp-json\/wp\/v2\/categories?post=210594"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/idc.net\/help\/wp-json\/wp\/v2\/tags?post=210594"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}