{"id":3782,"date":"2019-07-12T21:06:25","date_gmt":"2019-07-12T13:06:25","guid":{"rendered":"https:\/\/www.linuxcool.com\/?p=3782"},"modified":"2019-07-12T21:06:26","modified_gmt":"2019-07-12T13:06:26","slug":"kexec","status":"publish","type":"post","link":"https:\/\/www.linuxcool.com\/kexec","title":{"rendered":"kexec\u547d\u4ee4 – \u76f4\u63a5\u8d77\u52a8\u53e6\u4e00linux\u5185\u6838"},"content":{"rendered":"\n

kexec\u547d\u4ee4\u7684\u529f\u80fd\u662f\u53ef\u4ee5\u4ece\u5f53\u524d\u6b63\u5728\u8fd0\u884c\u7684\u5185\u6838\u76f4\u63a5\u5f15\u5bfc\u5230\u4e00\u4e2a\u65b0\u5185\u6838\u3002<\/p>\n\n\n\n

kexec\u547d\u4ee4\u8df3\u8fc7\u4e86\u6574\u4e2a\u5f15\u5bfc\u88c5\u8f7d\u7a0b\u5e8f\u9636\u6bb5\u7684\u7b2c\u4e00\u90e8\u5206\uff0c\u76f4\u63a5\u8df3\u8f6c\u5230\u6211\u4eec\u5e0c\u671b\u5f15\u5bfc\u5230\u7684\u5185\u6838\u3002\u4e0d\u518d\u6709\u786c\u4ef6\u7684\u91cd\u542f\u548c\u56fa\u4ef6\u64cd\u4f5c\uff0c\u4e0d\u518d\u6d89\u53ca\u5f15\u5bfc\u88c5\u8f7d\u7a0b\u5e8f\u3002\u5b8c\u5168\u907f\u5f00\u4e86\u5f15\u5bfc\u5e8f\u5217\u6700\u6162\u7684\u4e00\u90e8\u5206\u3002\u8fd9\u4e00\u529f\u80fd\u90e8\u4ef6\u5e26\u6765\u7684\u6700\u5927\u76ca\u5904\u5728\u4e8e\uff0c\u7cfb\u7edf\u73b0\u5728\u53ef\u4ee5\u6781\u5176\u5feb\u901f\u5730\u91cd\u65b0\u542f\u52a8\u3002<\/p>\n\n\n\n

\u4f7f\u7528kexec\u547d\u4ee4\u5185\u6838\u7248\u672c\u5fc5\u9700\u4e3a 2.6.13 \u6216\u4ee5\u4e0a\u3002<\/p>\n\n\n\n

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

\u5e38\u7528\u53c2\u6570\uff1a<\/strong><\/p>\n\n\n\n
-l<\/td>\u6307\u5b9a\u5185\u6838\u6620\u50cf\u6587\u4ef6<\/td><\/tr>
-e<\/td>\u5141\u8bb8\u5f53\u524d\u88ab\u52a0\u8f7d\u7684\u5185\u6838<\/td><\/tr>
-f<\/td>\u5f3a\u5236\u7acb\u5373\u8c03\u7528\u7cfb\u7edf\u8c03\u7528\u201ckexec\u201d\uff0c\u800c\u4e0d\u8c03\u7528\u201cshutdown\u201d<\/td><\/tr>
-t<\/td>\u6307\u5b9a\u65b0\u5185\u6838\u7684\u7c7b\u578b<\/td><\/tr>
-u<\/td>\u5378\u8f7d\u5f53\u524d\u7684kexec\u76ee\u6807\u5185\u6838<\/td><\/tr><\/tbody><\/table>\n\n\n\n

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

\u88c5\u5728\u6307\u5b9a\u7684\u5185\u6838\u6620\u50cf\uff1a<\/p>\n\n\n\n

[root@linuxcool ~]# kexec -l \/boot\/bzImage -append=\"root=\/dev\/hda1\" <\/pre>\n\n\n\n

\u91cd\u65b0\u542f\u52a8\u5df2\u88c5\u8f7d\u7684\u5185\u6838\uff1a<\/p>\n\n\n\n

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

kexec\u547d\u4ee4\u7684\u529f\u80fd\u662f\u53ef\u4ee5\u4ece\u5f53\u524d\u6b63\u5728\u8fd0\u884c\u7684\u5185\u6838\u76f4\u63a5\u5f15\u5bfc\u5230\u4e00\u4e2a\u65b0\u5185\u6838\u3002 kexec\u547d\u4ee4\u8df3\u8fc7\u4e86\u6574\u4e2a\u5f15\u5bfc\u88c5\u8f7d\u7a0b\u5e8f\u9636\u6bb5 […]<\/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\/3782"}],"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=3782"}],"version-history":[{"count":2,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/posts\/3782\/revisions"}],"predecessor-version":[{"id":3801,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/posts\/3782\/revisions\/3801"}],"wp:attachment":[{"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/media?parent=3782"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/categories?post=3782"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/tags?post=3782"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}