{"id":35,"date":"2022-06-29T09:44:38","date_gmt":"2022-06-29T01:44:38","guid":{"rendered":"http:\/\/blog.naspro.cc\/?p=35"},"modified":"2022-06-29T09:45:05","modified_gmt":"2022-06-29T01:45:05","slug":"u%e7%9b%98%e5%ae%89%e8%a3%85centos%e9%81%87%e5%88%b0%e7%9a%84%e9%82%a3%e4%ba%9b%e5%9d%91","status":"publish","type":"post","link":"http:\/\/blog.naspro.cc\/?p=35","title":{"rendered":"U\u76d8\u5b89\u88c5Centos\u9047\u5230\u7684\u90a3\u4e9b\u5751"},"content":{"rendered":"<div id=\"ez-toc-container\" class=\"ez-toc-v2_0_73 counter-flat ez-toc-counter ez-toc-light-blue ez-toc-container-direction\">\n<div class=\"ez-toc-title-container\">\n<span class=\"ez-toc-title-toggle\"><a href=\"#\" class=\"ez-toc-pull-right ez-toc-btn ez-toc-btn-xs ez-toc-btn-default ez-toc-toggle\" aria-label=\"Toggle Table of Content\"><span class=\"ez-toc-js-icon-con\"><span class=\"\"><span class=\"eztoc-hide\" style=\"display:none;\">Toggle<\/span><span class=\"ez-toc-icon-toggle-span\"><svg style=\"fill: #999;color:#999\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" class=\"list-377408\" width=\"20px\" height=\"20px\" viewBox=\"0 0 24 24\" fill=\"none\"><path d=\"M6 6H4v2h2V6zm14 0H8v2h12V6zM4 11h2v2H4v-2zm16 0H8v2h12v-2zM4 16h2v2H4v-2zm16 0H8v2h12v-2z\" fill=\"currentColor\"><\/path><\/svg><svg style=\"fill: #999;color:#999\" class=\"arrow-unsorted-368013\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"10px\" height=\"10px\" viewBox=\"0 0 24 24\" version=\"1.2\" baseProfile=\"tiny\"><path d=\"M18.2 9.3l-6.2-6.3-6.2 6.3c-.2.2-.3.4-.3.7s.1.5.3.7c.2.2.4.3.7.3h11c.3 0 .5-.1.7-.3.2-.2.3-.5.3-.7s-.1-.5-.3-.7zM5.8 14.7l6.2 6.3 6.2-6.3c.2-.2.3-.5.3-.7s-.1-.5-.3-.7c-.2-.2-.4-.3-.7-.3h-11c-.3 0-.5.1-.7.3-.2.2-.3.5-.3.7s.1.5.3.7z\"\/><\/svg><\/span><\/span><\/span><\/a><\/span><\/div>\n<nav><ul class='ez-toc-list ez-toc-list-level-1 ' ><li class='ez-toc-page-1'><a class=\"ez-toc-link ez-toc-heading-1\" href=\"http:\/\/blog.naspro.cc\/?p=35\/#%e5%85%b3%e4%ba%8eu%e7%9b%98%e5%ae%89%e8%a3%85%e6%89%be%e4%b8%8d%e5%88%b0%e7%9b%98%e7%ac%a6%e6%8a%a5%e9%94%99%e7%9a%84%e9%97%ae%e9%a2%98\" title=\"\u5173\u4e8eU\u76d8\u5b89\u88c5\u627e\u4e0d\u5230\u76d8\u7b26\u62a5\u9519\u7684\u95ee\u9898\">\u5173\u4e8eU\u76d8\u5b89\u88c5\u627e\u4e0d\u5230\u76d8\u7b26\u62a5\u9519\u7684\u95ee\u9898<\/a><\/li><li class='ez-toc-page-1'><a class=\"ez-toc-link ez-toc-heading-2\" href=\"http:\/\/blog.naspro.cc\/?p=35\/#%e5%85%b3%e4%ba%8ecentos%e5%ae%89%e8%a3%85%e5%ae%8c%e6%af%95%e5%a6%82%e4%bd%95%e6%9f%a5%e7%9c%8b%e6%9c%ac%e6%9c%baip%e9%97%ae%e9%a2%98\" title=\"\u5173\u4e8eCentos\u5b89\u88c5\u5b8c\u6bd5\u5982\u4f55\u67e5\u770b\u672c\u673aIP\u95ee\u9898\">\u5173\u4e8eCentos\u5b89\u88c5\u5b8c\u6bd5\u5982\u4f55\u67e5\u770b\u672c\u673aIP\u95ee\u9898<\/a><\/li><\/ul><\/nav><\/div>\n<h3><span class=\"ez-toc-section\" id=\"%e5%85%b3%e4%ba%8eu%e7%9b%98%e5%ae%89%e8%a3%85%e6%89%be%e4%b8%8d%e5%88%b0%e7%9b%98%e7%ac%a6%e6%8a%a5%e9%94%99%e7%9a%84%e9%97%ae%e9%a2%98\"><\/span>\u5173\u4e8eU\u76d8\u5b89\u88c5\u627e\u4e0d\u5230\u76d8\u7b26\u62a5\u9519\u7684\u95ee\u9898<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<ol>\n<li>\u5236\u4f5cCentOS\u542f\u52a8\u76d8\uff08\u5177\u4f53\u65b9\u6cd5\u81ea\u884c\u5728\u7ecf\u9a8c\u4e2d\u641c\u7d22\uff0c\u8fd9\u91cc\u4e0d\u5c55\u5f00\uff09<\/li>\n<li>\u8bbe\u7f6e\u542f\u52a8\u9879\uff0c\u5e76\u542f\u52a8\u5230\u5b89\u88c5\u754c\u9762\uff0c\u6309\u65b9\u5411\u5efa\u9009\u62e9\u9700\u8981\u7684\u9009\u9879\uff08\u4e00\u822c\u9009\u62e9\u7b2c\u4e00\u9879\uff09<\/li>\n<\/ol>\n<p><img decoding=\"async\" src=\"http:\/\/blog.naspro.cc\/wp-content\/uploads\/2022\/02\/1-5e25325c112f4c8da77c42ac1d93e400.png\" alt=\"1\" \/><\/p>\n<p>\u9009\u4e2d\u7b2c\u4e00\u9879\u540e\u6309\u952e\u76d8\u4e0a\u7684Tab\u952e\u8fdb\u884c\u7f16\u8f91\uff08\u4ee5\u524d\u7248\u672c\u6309E\u952e\u8fdb\u5165\u7f16\u8f91\u754c\u9762\uff09\u3002<br \/>\n\u91cd\u70b9\u6765\u4e86\u5c06<\/p>\n<blockquote>\n<p>vmlinuz initrd=initrd.img inst.stage2=hd:LABEL=CentOS\\x207\\x20x86_64 quiet<\/p>\n<\/blockquote>\n<p>\u6539\u6210<\/p>\n<blockquote>\n<p>vmlinuz initrd=initrd.img linux dd quiet<\/p>\n<\/blockquote>\n<p>\u6539\u6210\u7136\u540e\u5b89\u88c5\uff0c\u4f9d\u7136\u662f\u7b49\u5230\u5b89\u88c5\u5361\u4f4f\u540e\u67e5\u770bU\u76d8\u7f16\u53f7\/\u76d8\u7b26,\u4f8b\u5982\u770b\u5230U\u76d8\u5bf9\u5e94\u76d8\u7b26\u4e3asdaX\uff08X\u4e3a\u67d0\u4e2a\u6570\u5b57\uff09\u91cd\u542f\u7535\u8111\u540e\u518d\u6b21\u5c06<\/p>\n<blockquote>\n<p>vmlinuz initrd=initrd.img inst.stage2=hd:LABEL=CentOS\\x207\\x20x86_64 quiet<\/p>\n<\/blockquote>\n<p>\u6539\u6210<\/p>\n<blockquote>\n<p>vmlinuz initrd=initrd.img inst.stage2=hd:\/dev\/sdaX quiet<\/p>\n<\/blockquote>\n<p>\u7136\u540e\u6267\u884c\u5b89\u88c5\u64cd\u4f5c<\/p>\n<p>\u5907\u6ce8\u8bf4\u660e\uff1a\u542f\u52a8U\u76d8\u955c\u50cf\u65f6\uff0c\u4e0d\u8981\u4f7f\u7528UEFI\uff0c\u4f7f\u7528\u4f20\u7edf\u6a21\u5f0f\uff0c\u5426\u8005\u627e\u4e0d\u5230<\/p>\n<blockquote>\n<p>vmlinuz initrd=initrd.img inst.stage2=hd:LABEL=CentOS\\x207\\x20x86_64 quiet<\/p>\n<\/blockquote>\n<p>\u8fd9\u6bb5\u4ee3\u7801<\/p>\n<h3><span class=\"ez-toc-section\" id=\"%e5%85%b3%e4%ba%8ecentos%e5%ae%89%e8%a3%85%e5%ae%8c%e6%af%95%e5%a6%82%e4%bd%95%e6%9f%a5%e7%9c%8b%e6%9c%ac%e6%9c%baip%e9%97%ae%e9%a2%98\"><\/span>\u5173\u4e8eCentos\u5b89\u88c5\u5b8c\u6bd5\u5982\u4f55\u67e5\u770b\u672c\u673aIP\u95ee\u9898<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p>1\u3001\u9996\u5148\u8981\u5148\u67e5\u770b\u4e00bai\u4e0b\u865a\u62df\u673a\u7684ip\u5730\u5740\uff0c\u4f7f\u7528 ip addr\u6765\u67e5\u770b\u3002<\/p>\n<p><img decoding=\"async\" src=\"http:\/\/blog.naspro.cc\/wp-content\/uploads\/2022\/02\/2-90d1f2efe0794b0aa471e0bf9c71a162.png\" alt=\"2\" \/><\/p>\n<p>2\u3001\u67e5\u770b\u4e4b\u540e\u4f60\u5c31\u4f1a\u53d1\u73b0ens33\u662f\u6ca1\u6709inet\u5c5e\u6027\u7684<\/p>\n<p><img decoding=\"async\" src=\"http:\/\/blog.naspro.cc\/wp-content\/uploads\/2022\/02\/3-f0a802e7f41f4c17a0437fb6cd55f370.png\" alt=\"3\" \/><\/p>\n<p>3\u3001\u7136\u540e\u67e5\u770b\u4e00\u4e0bens33\u914d\u7f6e\uff0c\u7528vi\/etc\/sysconf ig\/network-scripts\/ifcfg\/ens33_\u547d\u4ee4\u67e5\u770b\u3002<\/p>\n<p>4\u3001\u5728\u67e5\u770b\u9875\u9762\u4e2d\u7684\u914d\u7f6e\u6587\u4ef6\u4e2d\u53ef\u4ee5\u770b\u5230\u7f51\u5361\u662f\u6ca1\u6709\u5f00\u542f\u7684\u3002\u5982\u679c\u6ca1\u6709\u5f00\u542f\uff0c\u952e\u76d8i\u5f00\u542f\u7f16\u8f91\uff0c\u5c06ONBOOT=NO \u6539\u6210 ONBOOT=YES \u6309ESC\u9000\u51fa:wd \u547d\u4ee4\u4fdd\u5b58<\/p>\n<p><img decoding=\"async\" src=\"http:\/\/blog.naspro.cc\/wp-content\/uploads\/2022\/02\/4-a8aba48fff0c4b90981985e15b038599.png\" alt=\"4\" \/><\/p>\n<p>5\u3001\u518d\u6267\u884cip addr\u547d\u4ee4\uff0c\u67e5\u5373\u53ef\u770bip\u5730\u5740\u3002<\/p>\n<p><strong>\u5b8c\u6210<\/strong><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u5173\u4e8eU\u76d8\u5b89\u88c5\u627e\u4e0d\u5230\u76d8\u7b26\u62a5\u9519\u7684\u95ee\u9898 \u5236\u4f5cCentOS\u542f\u52a8\u76d8\uff08\u5177\u4f53\u65b9\u6cd5\u81ea\u884c\u5728\u7ecf\u9a8c\u4e2d\u641c\u7d22\uff0c\u8fd9\u91cc\u4e0d\u5c55\u5f00\uff09 \u8bbe\u7f6e\u542f\u52a8\u9879\uff0c\u5e76\u542f\u52a8\u5230\u5b89\u88c5\u754c\u9762\uff0c\u6309\u65b9\u5411\u5efa\u9009\u62e9\u9700\u8981\u7684\u9009\u9879\uff08\u4e00\u822c\u9009\u62e9\u7b2c\u4e00\u9879\uff09 \u9009\u4e2d\u7b2c\u4e00\u9879\u540e\u6309\u952e\u76d8\u4e0a\u7684Tab\u952e\u8fdb\u884c\u7f16\u8f91\uff08\u4ee5\u524d\u7248\u672c\u6309E\u952e\u8fdb\u5165\u7f16\u8f91\u754c\u9762\uff09\u3002 \u91cd\u70b9\u6765\u4e86\u5c06 vmlinuz initrd=initrd.img inst.stage2=hd:LABEL=CentOS\\x207\\x20x86_64 quie [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[9],"tags":[21],"class_list":["post-35","post","type-post","status-publish","format-standard","hentry","category-linux","tag-centos"],"_links":{"self":[{"href":"http:\/\/blog.naspro.cc\/index.php?rest_route=\/wp\/v2\/posts\/35","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/blog.naspro.cc\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/blog.naspro.cc\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/blog.naspro.cc\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/blog.naspro.cc\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=35"}],"version-history":[{"count":0,"href":"http:\/\/blog.naspro.cc\/index.php?rest_route=\/wp\/v2\/posts\/35\/revisions"}],"wp:attachment":[{"href":"http:\/\/blog.naspro.cc\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=35"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/blog.naspro.cc\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=35"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/blog.naspro.cc\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=35"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}