{"id":299,"date":"2013-02-10T22:20:32","date_gmt":"2013-02-10T22:20:32","guid":{"rendered":"https:\/\/shan.info\/new\/linux%e4%b8%ad%e9%87%8d%e5%90%af%e7%9a%84%e4%b8%a4%e4%b8%aa%e5%91%bd%e4%bb%a4%ef%bc%9areboot%e5%92%8cinit-6%e4%b9%8b%e9%97%b4%e7%9a%84%e5%8c%ba%e5%88%ab\/"},"modified":"2013-02-10T22:20:32","modified_gmt":"2013-02-10T22:20:32","slug":"linux%e4%b8%ad%e9%87%8d%e5%90%af%e7%9a%84%e4%b8%a4%e4%b8%aa%e5%91%bd%e4%bb%a4%ef%bc%9areboot%e5%92%8cinit-6%e4%b9%8b%e9%97%b4%e7%9a%84%e5%8c%ba%e5%88%ab","status":"publish","type":"post","link":"https:\/\/shan.info\/new\/linux%e4%b8%ad%e9%87%8d%e5%90%af%e7%9a%84%e4%b8%a4%e4%b8%aa%e5%91%bd%e4%bb%a4%ef%bc%9areboot%e5%92%8cinit-6%e4%b9%8b%e9%97%b4%e7%9a%84%e5%8c%ba%e5%88%ab\/","title":{"rendered":"Linux\u4e2d\u91cd\u542f\u7684\u4e24\u4e2a\u547d\u4ee4\uff1areboot\u548cinit 6\u4e4b\u95f4\u7684\u533a\u522b"},"content":{"rendered":"<p>\n\t<span style=\"color: rgb(62, 62, 62); font-family: Simsun; font-size: 14px; line-height: 26px; text-align: justify; text-indent: 28px; background-color: rgb(255, 251, 228);\">init\u547d\u4ee4\u7528\u4e8e\u6539\u53d8\u64cd\u4f5c\u7cfb\u7edf\u7684\u8fd0\u884c\u7ea7\u522b\u3002<\/span><br style=\"color: rgb(62, 62, 62); font-family: Simsun; font-size: 14px; line-height: 26px; text-align: justify; text-indent: 28px; background-color: rgb(255, 251, 228);\" \/><br \/>\n\t<span style=\"color: rgb(62, 62, 62); font-family: Simsun; font-size: 14px; line-height: 26px; text-align: justify; text-indent: 28px; background-color: rgb(255, 251, 228);\">Init 6\u662f\u91cd\u65b0\u542f\u52a8\u673a\u5668\u3002<\/span><br style=\"color: rgb(62, 62, 62); font-family: Simsun; font-size: 14px; line-height: 26px; text-align: justify; text-indent: 28px; background-color: rgb(255, 251, 228);\" \/><br \/>\n\t<span style=\"color: rgb(62, 62, 62); font-family: Simsun; font-size: 14px; line-height: 26px; text-align: justify; text-indent: 28px; background-color: rgb(255, 251, 228);\">reboot\u4e5f\u662f\u91cd\u65b0\u542f\u52a8\u673a\u5668\u3002<\/span><br style=\"color: rgb(62, 62, 62); font-family: Simsun; font-size: 14px; line-height: 26px; text-align: justify; text-indent: 28px; background-color: rgb(255, 251, 228);\" \/><br \/>\n\t<span style=\"color: rgb(62, 62, 62); font-family: Simsun; font-size: 14px; line-height: 26px; text-align: justify; text-indent: 28px; background-color: rgb(255, 251, 228);\">\u90a3\u4e48\u8fd9\u4e24\u4e2a\u547d\u4ee4\u5230\u5e95\u6709\u4ec0\u4e48\u533a\u522b\u5462\uff1f<\/span><br style=\"color: rgb(62, 62, 62); font-family: Simsun; font-size: 14px; line-height: 26px; text-align: justify; text-indent: 28px; background-color: rgb(255, 251, 228);\" \/><br \/>\n\t<span style=\"color: rgb(62, 62, 62); font-family: Simsun; font-size: 14px; line-height: 26px; text-align: justify; text-indent: 28px; background-color: rgb(255, 251, 228);\">\u5bf9\u8fd9\u4e24\u4e2a\u64cd\u4f5c\u4f7f\u7528man\u547d\u4ee4\u770b\u5230\u7684\u5185\u5bb9\u5982\u4e0b\uff1a<\/span><br style=\"color: rgb(62, 62, 62); font-family: Simsun; font-size: 14px; line-height: 26px; text-align: justify; text-indent: 28px; background-color: rgb(255, 251, 228);\" \/><br \/>\n\t<span style=\"color: rgb(62, 62, 62); font-family: Simsun; font-size: 14px; line-height: 26px; text-align: justify; text-indent: 28px; background-color: rgb(255, 251, 228);\">&#8220;init 6&#8221; \u57fa\u4e8e\u4e00\u7cfb\u5217\/etc\/inittab\u6587\u4ef6\uff0c\u5e76\u4e14\u6bcf\u4e2a\u5e94\u7528\u90fd\u4f1a\u6709\u4e00\u4e2a\u76f8\u5e94shutdown\u811a\u672c\u3002<\/span><br style=\"color: rgb(62, 62, 62); font-family: Simsun; font-size: 14px; line-height: 26px; text-align: justify; text-indent: 28px; background-color: rgb(255, 251, 228);\" \/><br \/>\n\t<span style=\"color: rgb(62, 62, 62); font-family: Simsun; font-size: 14px; line-height: 26px; text-align: justify; text-indent: 28px; background-color: rgb(255, 251, 228);\">&#8216;init 6&#8217; \u8c03\u7528\u4e00\u7cfb\u5217shutdown\u811a\u672c(\/etc\/rc0.d\/K*)\u6765\u4f7f\u7cfb\u7edf\u4f18\u96c5\u5173\u673a;<\/span><br style=\"color: rgb(62, 62, 62); font-family: Simsun; font-size: 14px; line-height: 26px; text-align: justify; text-indent: 28px; background-color: rgb(255, 251, 228);\" \/><br \/>\n\t<span style=\"color: rgb(62, 62, 62); font-family: Simsun; font-size: 14px; line-height: 26px; text-align: justify; text-indent: 28px; background-color: rgb(255, 251, 228);\">&#8216;reboot&#8217;\u5e76\u4e0d\u6267\u884c\u8fd9\u4e9b\u8fc7\u7a0b\uff0creboot\u66f4\u662f\u4e00\u4e2akernel\u7ea7\u522b\u7684\u547d\u4ee4\uff0c\u4e0d\u5bf9\u5e94\u7528\u4f7f\u7528shutdown\u811a\u672c\u3002 .<\/span><br style=\"color: rgb(62, 62, 62); font-family: Simsun; font-size: 14px; line-height: 26px; text-align: justify; text-indent: 28px; background-color: rgb(255, 251, 228);\" \/><br \/>\n\t<span style=\"color: rgb(62, 62, 62); font-family: Simsun; font-size: 14px; line-height: 26px; text-align: justify; text-indent: 28px; background-color: rgb(255, 251, 228);\">\u6211\u4eec\u5e94\u8be5\u5728\u901a\u5e38\u60c5\u51b5\u4e0b\u4f7f\u7528 init 6.<\/span><br style=\"color: rgb(62, 62, 62); font-family: Simsun; font-size: 14px; line-height: 26px; text-align: justify; text-indent: 28px; background-color: rgb(255, 251, 228);\" \/><br \/>\n\t<span style=\"color: rgb(62, 62, 62); font-family: Simsun; font-size: 14px; line-height: 26px; text-align: justify; text-indent: 28px; background-color: rgb(255, 251, 228);\">reboot &#8211; reboot performs a sync(1M) operation on the disks, and then a<\/span><br style=\"color: rgb(62, 62, 62); font-family: Simsun; font-size: 14px; line-height: 26px; text-align: justify; text-indent: 28px; background-color: rgb(255, 251, 228);\" \/><br \/>\n\t<span style=\"color: rgb(62, 62, 62); font-family: Simsun; font-size: 14px; line-height: 26px; text-align: justify; text-indent: 28px; background-color: rgb(255, 251, 228);\">multi- user reboot is initiated. See init(1M) for details.<\/span><br style=\"color: rgb(62, 62, 62); font-family: Simsun; font-size: 14px; line-height: 26px; text-align: justify; text-indent: 28px; background-color: rgb(255, 251, 228);\" \/><br \/>\n\t<span style=\"color: rgb(62, 62, 62); font-family: Simsun; font-size: 14px; line-height: 26px; text-align: justify; text-indent: 28px; background-color: rgb(255, 251, 228);\">init 6 Stop the operating system and reboot to the<\/span><br style=\"color: rgb(62, 62, 62); font-family: Simsun; font-size: 14px; line-height: 26px; text-align: justify; text-indent: 28px; background-color: rgb(255, 251, 228);\" \/><br \/>\n\t<span style=\"color: rgb(62, 62, 62); font-family: Simsun; font-size: 14px; line-height: 26px; text-align: justify; text-indent: 28px; background-color: rgb(255, 251, 228);\">state defined by the initdefault entry in<\/span><br style=\"color: rgb(62, 62, 62); font-family: Simsun; font-size: 14px; line-height: 26px; text-align: justify; text-indent: 28px; background-color: rgb(255, 251, 228);\" \/><br \/>\n\t<span style=\"color: rgb(62, 62, 62); font-family: Simsun; font-size: 14px; line-height: 26px; text-align: justify; text-indent: 28px; background-color: rgb(255, 251, 228);\">\/etc\/inittab.<\/span><br style=\"color: rgb(62, 62, 62); font-family: Simsun; font-size: 14px; line-height: 26px; text-align: justify; text-indent: 28px; background-color: rgb(255, 251, 228);\" \/><br \/>\n\t<span style=\"color: rgb(62, 62, 62); font-family: Simsun; font-size: 14px; line-height: 26px; text-align: justify; text-indent: 28px; background-color: rgb(255, 251, 228);\">\u5728\u51fa\u95ee\u9898\u7684\u72b6\u51b5\u4e0b\u6216\u5f3a\u5236\u91cd\u542f\u65f6\u4f7f\u7528reboot.<\/span><\/p>\n","protected":false},"excerpt":{"rendered":"<p>init\u547d\u4ee4\u7528\u4e8e\u6539\u53d8\u64cd\u4f5c\u7cfb\u7edf\u7684\u8fd0\u884c\u7ea7\u522b\u3002 Init 6\u662f\u91cd\u65b0\u542f\u52a8\u673a\u5668\u3002 reboot\u4e5f\u662f\u91cd\u65b0\u542f\u52a8\u673a\u5668\u3002 \u90a3\u4e48\u8fd9\u4e24\u4e2a\u547d\u4ee4\u5230\u5e95\u6709\u4ec0\u4e48\u533a\u522b\u5462\uff1f \u5bf9\u8fd9\u4e24\u4e2a\u64cd\u4f5c\u4f7f\u7528man\u547d\u4ee4\u770b\u5230\u7684\u5185\u5bb9\u5982\u4e0b\uff1a &#8220;init 6&#8221; \u57fa\u4e8e\u4e00\u7cfb\u5217\/etc\/inittab\u6587\u4ef6\uff0c\u5e76\u4e14\u6bcf\u4e2a\u5e94\u7528\u90fd\u4f1a\u6709\u4e00\u4e2a\u76f8\u5e94shutdown\u811a\u672c\u3002 &#8216;init 6&#8217; \u8c03\u7528\u4e00\u7cfb\u5217shutdown\u811a\u672c(\/etc\/rc0.d\/K*)\u6765\u4f7f\u7cfb\u7edf\u4f18\u96c5\u5173\u673a; &#8216;reboot&#8217;\u5e76\u4e0d\u6267\u884c\u8fd9\u4e9b\u8fc7\u7a0b\uff0creboot\u66f4\u662f\u4e00\u4e2akernel\u7ea7\u522b\u7684\u547d\u4ee4\uff0c\u4e0d\u5bf9\u5e94\u7528\u4f7f\u7528shutdown\u811a\u672c\u3002 . \u6211\u4eec\u5e94\u8be5\u5728\u901a\u5e38\u60c5\u51b5\u4e0b\u4f7f\u7528 init 6. reboot &#8211; reboot performs a sync(1M) operation on the disks, and then a multi- user reboot is initiated. See init(1M) for details. init 6 Stop the operating system and reboot to the state defined by the initdefault entry [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[33],"tags":[],"class_list":["post-299","post","type-post","status-publish","format-standard","hentry","category-centos-6"],"_links":{"self":[{"href":"https:\/\/shan.info\/new\/wp-json\/wp\/v2\/posts\/299","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/shan.info\/new\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/shan.info\/new\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/shan.info\/new\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/shan.info\/new\/wp-json\/wp\/v2\/comments?post=299"}],"version-history":[{"count":0,"href":"https:\/\/shan.info\/new\/wp-json\/wp\/v2\/posts\/299\/revisions"}],"wp:attachment":[{"href":"https:\/\/shan.info\/new\/wp-json\/wp\/v2\/media?parent=299"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/shan.info\/new\/wp-json\/wp\/v2\/categories?post=299"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/shan.info\/new\/wp-json\/wp\/v2\/tags?post=299"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}