{"id":995,"date":"2019-04-27T11:53:24","date_gmt":"2019-04-27T03:53:24","guid":{"rendered":"https:\/\/www.linuxcool.com\/?p=995"},"modified":"2022-05-11T20:47:04","modified_gmt":"2022-05-11T12:47:04","slug":"shutdown","status":"publish","type":"post","link":"https:\/\/www.linuxcool.com\/shutdown","title":{"rendered":"shutdown\u547d\u4ee4 – \u5173\u95ed\u670d\u52a1\u5668\u7684\u7cfb\u7edf"},"content":{"rendered":"\n

shutdown\u547d\u4ee4\u6765\u81ea\u4e8e\u82f1\u6587\u5355\u8bcd\u5173\u95ed\uff0c\u5176\u529f\u80fd\u662f\u7528\u4e8e\u5173\u95ed\u670d\u52a1\u5668\u7684\u7cfb\u7edf\uff0c\u4f5c\u7528\u540c\u4e8epoweroff\u547d\u4ee4\u3002<\/p>\n\n\n\n

\u8bed\u6cd5\u683c\u5f0f\uff1a<\/strong>shutdown [\u53c2\u6570] <\/p>\n\n\n\n

\u5e38\u7528\u53c2\u6570\uff1a<\/strong> <\/p>\n\n\n\n

-f<\/td>\u91cd\u65b0\u542f\u52a8\u65f6\u4e0d\u6267\u884cfsck<\/td><\/tr>
-F<\/td>\u91cd\u65b0\u542f\u52a8\u65f6\u6267\u884cfsck <\/td><\/tr>
-h<\/td>\u5c06\u7cfb\u7edf\u5173\u673a <\/td><\/tr>
-c<\/td>\u53d6\u6d88\u5173\u673a\u4efb\u52a1<\/td><\/tr>
-k<\/td>\u53d1\u9001\u4fe1\u606f\u7ed9\u6240\u6709\u7528\u6237<\/td><\/tr>
-n<\/td>\u4e0d\u8c03\u7528init\u7a0b\u5e8f\u8fdb\u884c\u5173\u673a<\/td><\/tr>
-r<\/td>\u5c06\u7cfb\u7edf\u91cd\u542f<\/td><\/tr>
-t <\/td>\u9001\u51fa\u8b66\u544a\u4fe1\u606f\u548c\u5220\u9664\u4fe1\u606f\u4e4b\u95f4\u8981\u5ef6\u8fdf\u591a\u5c11\u79d2 <\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n

\ufeff\u53c2\u8003\u5b9e\u4f8b<\/strong><\/p>\n\n\n\n

\u5c06\u5f53\u524d\u670d\u52a1\u5668\u7acb\u5373\u5173\u673a\uff1a<\/p>\n\n\n\n

[root@linuxcool ~]# shutdown -h now <\/strong><\/pre>\n\n\n\n

\u5c06\u5f53\u524d\u670d\u52a1\u5668\u7acb\u5373\u91cd\u542f\uff1a<\/p>\n\n\n\n

[root@linuxcool ~]# shutdown -r now <\/strong><\/pre>\n\n\n\n

\u8bbe\u5b9a\u5f53\u524d\u7684\u670d\u52a1\u5668\u6307\u5b9a\u65f6\u95f4\u81ea\u52a8\u5173\u673a\uff0c\u683c\u5f0f\u4e3a\u201d\u5c0f\u65f6:\u5206\u949f\u201c\uff1a<\/p>\n\n\n\n

[root@linuxcool ~]# shutdown -h 21:00<\/strong>\r\nShutdown scheduled for Wed 2022-05-11 21:00:00 CST, use 'shutdown -c' to cancel.\r<\/pre>\n\n\n\n

\u8bbe\u5b9a\u5f53\u524d\u7684\u670d\u52a1\u56685\u5206\u949f\u540e\u5173\u673a\uff0c\u540c\u65f6\u53d1\u9001\u8b66\u544a\u4fe1\u606f\u7ed9\u6240\u6709\u5df2\u767b\u5f55\u7684\u7528\u6237\uff1a<\/p>\n\n\n\n

[root@linuxcool ~]# shutdown +5 \"System will shutdown after 5 minutes\" <\/strong>\r\nShutdown scheduled for Wed 2022-05-11 20:47:25 CST, use 'shutdown -c' to cancel.\r<\/pre>\n\n\n\n

\u53d6\u6d88\u5f53\u524d\u670d\u52a1\u5668\u4e0a\u5df2\u6709\u7684\u5173\u673a\u4efb\u52a1\uff1a<\/p>\n\n\n\n

[root@linuxcool ~]# shutdown -c <\/strong><\/pre>\n","protected":false},"excerpt":{"rendered":"

shutdown\u547d\u4ee4\u6765\u81ea\u4e8e\u82f1\u6587\u5355\u8bcd\u5173\u95ed\uff0c\u5176\u529f\u80fd\u662f\u7528\u4e8e\u5173\u95ed\u670d\u52a1\u5668\u7684\u7cfb\u7edf\uff0c\u4f5c\u7528\u540c\u4e8epoweroff\u547d\u4ee4\u3002 \u8bed\u6cd5\u683c\u5f0f […]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":[],"categories":[7],"tags":[],"_links":{"self":[{"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/posts\/995"}],"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=995"}],"version-history":[{"count":15,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/posts\/995\/revisions"}],"predecessor-version":[{"id":9557,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/posts\/995\/revisions\/9557"}],"wp:attachment":[{"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/media?parent=995"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/categories?post=995"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/tags?post=995"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}