{"id":262,"date":"2024-05-26T15:11:51","date_gmt":"2024-05-26T07:11:51","guid":{"rendered":"https:\/\/blog.zingcont.cn\/?p=262"},"modified":"2024-06-19T17:00:46","modified_gmt":"2024-06-19T09:00:46","slug":"centos-%e6%9c%80%e5%b0%8f%e5%ae%89%e8%a3%85","status":"publish","type":"post","link":"https:\/\/blog.zingcont.cn\/?p=262","title":{"rendered":"centOS \u6700\u5c0f\u5b89\u88c5-\u670d\u52a1\u5668"},"content":{"rendered":"<p>\u6b65\u9aa4\u5982\u4e0b\uff1a<\/p>\n<p>\u4e00\u3001\u4e0b\u8f7dCentOS 7 ISO\u6587\u4ef6\uff0c<\/p>\n<p>\u4e0b\u8f7d\u5730\u5740\uff1a\u534e\u4e3a\u4e91\uff1ahttps:\/\/mirrors.huaweicloud.com\/centos\/<\/p>\n<p>\u963f\u91cc\u4e91\uff1ahttps:\/\/mirrors.aliyun.com\/centos\/<\/p>\n<p>\u4e8c\u3001\u4f7f\u7528UltraISO\u5236\u4f5cU\u76d8<\/p>\n<p>\u4e09\u3001\u63d2\u5165U\u76d8, \u8fdbBOIS\u8bbe\u7f6eU\u76d8\u542f\u52a8<\/p>\n<p>\u2666\u2666\u2666\u51fa\u73b0\u65e0\u6cd5\u7ee7\u7eed\u8fdb\u5165\u5b89\u88c5\u754c\u9762\uff0c\u539f\u56e0\u662f\u65e0\u6cd5\u627e\u5230U\u76d8\uff0c\u89e3\u51b3\u65b9\u6cd5\u2666\u2666\u2666<\/p>\n<p>https:\/\/blog.csdn.net\/weixin_39814694\/article\/details\/78351279<\/p>\n<p>1\uff09\u6309E\u8fdb\u5165\u4ee3\u7801\u547d\u4ee4\u754c\u9762\uff0c \u4fee\u6539\u4ee3\u7801\u5982\u4e0b\uff0c \u6309Ctrl+x\uff0c \u67e5\u8be2U\u76d8\u76d8\u7b26\uff1a<\/p>\n<p><span data-from-paste=\"1\" data-diagnose-id=\"f5e75cff3d14793840f37cd1a2b773a6\">\u547d\u4ee4\uff1a<\/span>linuxefi \/images\/pxeboot\/mlinuz linux dd quiet\/<\/p>\n<p>2\uff09\u91cd\u542f\u518d\u6b21\u6309E\uff0c \u4fee\u6539\u547d\u4ee4, \u66ff\u6362\u67e5\u5230\u7684\u76d8\u7b26:<\/p>\n<p><span data-from-paste=\"1\" data-diagnose-id=\"f5e75cff3d14793840f37cd1a2b773a6\">\u547d\u4ee4\uff1a<\/span>linuxefi \/images\/pxeboot\/mlinuz inst.stage2=hd:\/dev\/<strong>sda4<\/strong> quiet\/<\/p>\n<p>\u56db\u3001\u5b89\u88c5\u540e\u67e5\u8be2SSH<\/p>\n<p>\u4e94\u3001 \u8fde\u63a5\u65e0\u7ebfwifi<\/p>\n<p>https:\/\/www.cnblogs.com\/yanshaoxiong\/p\/16556489.html<\/p>\n<p>1\uff09\u67e5\u770b\u7f51\u5361(w\u5f00\u5934\u4e3a\u65e0\u7ebf\u7f51\u5361\uff09<\/p>\n<p><span data-from-paste=\"1\" data-diagnose-id=\"f5e75cff3d14793840f37cd1a2b773a6\">\u547d\u4ee4\uff1a<\/span>ip addr<\/p>\n<p>2) \u8fde\u63a5wifi<\/p>\n<p data-from-paste=\"1\" data-diagnose-id=\"b58436e81643cdcfeefd88187815c1a6\"><code data-from-paste=\"1\" data-diagnose-id=\"273c61c5b8f10f95e6058005a41eee68\">\u547d\u4ee4\uff1a\u00a0wpa_supplicant -B -i wlp3s0 -c &lt;(wpa_passphrase \"\u65e0\u7ebf\u540d\u79f0\" \"\u65e0\u7ebf\u5bc6\u7801\")<\/code><\/p>\n<p>3) \u81ea\u52a8\u5206\u914dip\u5730\u5740<\/p>\n<p>\u547d\u4ee4\uff1a dhclient wlp3s0<\/p>\n<p>\u4e94\u3001\u66f4\u65b0\u4e3a\u56fd\u5185\u955c\u50cf\u6e90<\/p>\n<p>https:\/\/developer.aliyun.com\/mirror\/centos?spm=a2c6h.13651102.0.0.3d8d1b11ZoufgN<\/p>\n<p>\u4e0b\u8f7d\u5730\u5740\uff1ahttps:\/\/mirrors.aliyun.com\/repo\/Centos-7.repo<\/p>\n<p>\u4e0a\u4f20\u5230\uff1a\/etc\/yum.repos.d<\/p>\n<p>\u547d\u4ee4\uff1a<\/p>\n<p># \u6e05\u9664yum\u7f13\u5b58<\/p>\n<p>yum clean all<\/p>\n<p># \u7f13\u5b58\u963f\u91cc\u4e91\u6e90<\/p>\n<p>yum makecache<\/p>\n<p># \u6d4b\u8bd5\u963f\u91cc\u4e91\u6e90<\/p>\n<p>yum list<\/p>\n<p>\u516d\u3001\u7cfb\u7edf\u66f4\u65b0\uff1a<\/p>\n<p>\u547d\u4ee4\uff1asudo yum update -y<\/p>\n<p>\u4e03\u3001 \u5408\u76d6\u4e0d\u4f11\u7720\uff08\u7b14\u8bb0\u672c\uff09<\/p>\n<p>1\uff09\u7f16\u8f91\uff1avim \/etc\/systemd\/logind.conf<\/p>\n<p>HandleLidSwitch=lock<\/p>\n<p>2\uff09\u91cd\u8f7d\u914d\u7f6e\u751f\u6548\uff1asystemctl restart systemd-logind<\/p>\n<p>\u516b\u3001 \u9632\u706b\u5899\u76f8\u5173<\/p>\n<p>\u8bbe\u7f6e\u5f00\u673a\u542f\u7528\u9632\u706b\u5899\uff1asystemctl enable firewalld.service<br \/>\n\u8bbe\u7f6e\u5f00\u673a\u7981\u7528\u9632\u706b\u5899\uff1asystemctl disable firewalld.service<br \/>\n\u542f\u52a8\u9632\u706b\u5899\uff1asystemctl start firewalld<br \/>\n\u5173\u95ed\u9632\u706b\u5899\uff1asystemctl stop firewalld<br \/>\n\u68c0\u67e5\u9632\u706b\u5899\u72b6\u6001\uff1asystemctl status firewalld<br \/>\n\u67e5\u770b\u9ed8\u8ba4\u9632\u706b\u5899\u72b6\u6001\uff1afirewall-cmd &#8211;state\uff08\u5173\u95ed\u540e\u663e\u793anotrunning\uff0c\u5f00\u542f\u540e\u663e\u793arunning\uff09<\/p>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u6b65\u9aa4\u5982\u4e0b\uff1a \u4e00\u3001\u4e0b\u8f7dCentOS 7 ISO\u6587\u4ef6\uff0c \u4e0b\u8f7d\u5730\u5740\uff1a\u534e\u4e3a\u4e91\uff1ahttps:\/\/mirrors.huaw [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1,31],"tags":[],"class_list":["post-262","post","type-post","status-publish","format-standard","hentry","category-1","category-31"],"blocksy_meta":{"styles_descriptor":{"styles":{"desktop":"","tablet":"","mobile":""},"google_fonts":[],"version":7}},"_links":{"self":[{"href":"https:\/\/blog.zingcont.cn\/index.php?rest_route=\/wp\/v2\/posts\/262","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blog.zingcont.cn\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.zingcont.cn\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.zingcont.cn\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.zingcont.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=262"}],"version-history":[{"count":16,"href":"https:\/\/blog.zingcont.cn\/index.php?rest_route=\/wp\/v2\/posts\/262\/revisions"}],"predecessor-version":[{"id":331,"href":"https:\/\/blog.zingcont.cn\/index.php?rest_route=\/wp\/v2\/posts\/262\/revisions\/331"}],"wp:attachment":[{"href":"https:\/\/blog.zingcont.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=262"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.zingcont.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=262"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.zingcont.cn\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=262"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}