{"id":44066,"date":"2024-10-06T12:34:18","date_gmt":"2024-10-06T04:34:18","guid":{"rendered":"https:\/\/server.hk\/cnblog\/44066\/"},"modified":"2024-10-06T12:34:18","modified_gmt":"2024-10-06T04:34:18","slug":"centos-%e4%bc%ba%e6%9c%8d%e5%99%a8%e9%83%a8%e7%bd%b2%e6%b5%81%e7%a8%8b","status":"publish","type":"post","link":"https:\/\/server.hk\/cnblog\/44066\/","title":{"rendered":"CentOS \u4f3a\u670d\u5668\u90e8\u7f72\u6d41\u7a0b"},"content":{"rendered":"<h1 id=\"centos-%e4%bc%ba%e6%9c%8d%e5%99%a8%e9%83%a8%e7%bd%b2%e6%b5%81%e7%a8%8b-EHGTfaXelt\">CentOS \u4f3a\u670d\u5668\u90e8\u7f72\u6d41\u7a0b<\/h1>\n<p>CentOS\uff08Community ENTerprise Operating System\uff09\u662f\u4e00\u500b\u57fa\u65bcRed Hat Enterprise Linux\uff08RHEL\uff09\u7684\u958b\u6e90\u64cd\u4f5c\u7cfb\u7d71\uff0c\u5ee3\u6cdb\u61c9\u7528\u65bc\u4f3a\u670d\u5668\u74b0\u5883\u3002\u7531\u65bc\u5176\u7a69\u5b9a\u6027\u548c\u5b89\u5168\u6027\uff0cCentOS\u6210\u70ba\u8a31\u591a\u4f01\u696d\u548c\u958b\u767c\u8005\u7684\u9996\u9078\u3002\u672c\u6587\u5c07\u4ecb\u7d39CentOS\u4f3a\u670d\u5668\u7684\u90e8\u7f72\u6d41\u7a0b\uff0c\u5e6b\u52a9\u7528\u6236\u5feb\u901f\u4e0a\u624b\u3002<\/p>\n<h2 id=\"1-%e6%ba%96%e5%82%99%e5%b7%a5%e4%bd%9c-EHGTfaXelt\">1. \u6e96\u5099\u5de5\u4f5c<\/h2>\n<p>\u5728\u958b\u59cb\u90e8\u7f72CentOS\u4f3a\u670d\u5668\u4e4b\u524d\uff0c\u9700\u9032\u884c\u4ee5\u4e0b\u6e96\u5099\u5de5\u4f5c\uff1a<\/p>\n<ul>\n<li><strong>\u9078\u64c7\u4f3a\u670d\u5668\u786c\u9ad4\uff1a<\/strong>\u78ba\u4fdd\u4f3a\u670d\u5668\u786c\u9ad4\u7b26\u5408CentOS\u7684\u7cfb\u7d71\u8981\u6c42\uff0c\u901a\u5e38\u9700\u898164\u4f4d\u7684\u8655\u7406\u5668\u548c\u81f3\u5c111GB\u7684RAM\u3002<\/li>\n<li><strong>\u4e0b\u8f09CentOS\u6620\u50cf\u6a94\uff1a<\/strong>\u524d\u5f80CentOS\u7684\u5b98\u65b9\u7db2\u7ad9\uff08<a href=\"https:\/\/www.centos.org\/download\/\" rel=\"nofollow noopener\" target=\"_blank\">https:\/\/www.centos.org\/download\/<\/a>\uff09\u4e0b\u8f09\u6700\u65b0\u7248\u672c\u7684ISO\u6620\u50cf\u6a94\u3002<\/li>\n<li><strong>\u88fd\u4f5c\u555f\u52d5\u5a92\u4ecb\uff1a<\/strong>\u4f7f\u7528\u5de5\u5177\u5982Rufus\u6216Etcher\u5c07ISO\u6620\u50cf\u6a94\u5beb\u5165USB\u96a8\u8eab\u789f\u6216DVD\u3002<\/li>\n<\/ul>\n<h2 id=\"2-%e5%ae%89%e8%a3%9dcentos-EHGTfaXelt\">2. \u5b89\u88ddCentOS<\/h2>\n<p>\u5b8c\u6210\u6e96\u5099\u5de5\u4f5c\u5f8c\uff0c\u63a5\u4e0b\u4f86\u662f\u5b89\u88ddCentOS\u7684\u6b65\u9a5f\uff1a<\/p>\n<ol>\n<li><strong>\u555f\u52d5\u4f3a\u670d\u5668\uff1a<\/strong>\u5c07\u88fd\u4f5c\u597d\u7684\u555f\u52d5\u5a92\u4ecb\u63d2\u5165\u4f3a\u670d\u5668\uff0c\u4e26\u91cd\u555f\u4f3a\u670d\u5668\uff0c\u9032\u5165BIOS\u8a2d\u5b9a\u555f\u52d5\u9806\u5e8f\uff0c\u78ba\u4fdd\u5f9eUSB\u6216DVD\u555f\u52d5\u3002<\/li>\n<li><strong>\u9078\u64c7\u5b89\u88dd\u9078\u9805\uff1a<\/strong>\u5728\u555f\u52d5\u5f8c\uff0c\u9078\u64c7\u201cInstall CentOS\u201d\u9078\u9805\u9032\u5165\u5b89\u88dd\u754c\u9762\u3002<\/li>\n<li><strong>\u9078\u64c7\u8a9e\u8a00\u548c\u5730\u5340\uff1a<\/strong>\u9078\u64c7\u9069\u5408\u7684\u8a9e\u8a00\u548c\u5730\u5340\u8a2d\u5b9a\uff0c\u7136\u5f8c\u9ede\u64ca\u201cContinue\u201d\u3002<\/li>\n<li><strong>\u78c1\u789f\u5206\u5340\uff1a<\/strong>\u5728\u201cInstallation Destination\u201d\u4e2d\u9078\u64c7\u5b89\u88dd\u78c1\u789f\uff0c\u4e26\u6839\u64da\u9700\u6c42\u9032\u884c\u5206\u5340\u8a2d\u5b9a\u3002\u53ef\u4ee5\u9078\u64c7\u81ea\u52d5\u5206\u5340\u6216\u624b\u52d5\u5206\u5340\u3002<\/li>\n<li><strong>\u7db2\u7d61\u8a2d\u5b9a\uff1a<\/strong>\u5728\u201cNetwork &amp; Hostname\u201d\u4e2d\u914d\u7f6e\u7db2\u7d61\uff0c\u78ba\u4fdd\u7db2\u7d61\u9023\u63a5\u6b63\u5e38\uff0c\u4e26\u8a2d\u7f6e\u4e3b\u6a5f\u540d\u3002<\/li>\n<li><strong>\u958b\u59cb\u5b89\u88dd\uff1a<\/strong>\u78ba\u8a8d\u6240\u6709\u8a2d\u5b9a\u7121\u8aa4\u5f8c\uff0c\u9ede\u64ca\u201cBegin Installation\u201d\u3002<\/li>\n<li><strong>\u8a2d\u7f6eroot\u5bc6\u78bc\u548c\u7528\u6236\uff1a<\/strong>\u5728\u5b89\u88dd\u904e\u7a0b\u4e2d\uff0c\u8a2d\u7f6eroot\u7528\u6236\u7684\u5bc6\u78bc\uff0c\u4e26\u53ef\u9078\u64c7\u5275\u5efa\u5176\u4ed6\u7528\u6236\u3002<\/li>\n<\/ol>\n<h2 id=\"3-%e5%ae%8c%e6%88%90%e5%ae%89%e8%a3%9d-EHGTfaXelt\">3. \u5b8c\u6210\u5b89\u88dd<\/h2>\n<p>\u5b89\u88dd\u5b8c\u6210\u5f8c\uff0c\u7cfb\u7d71\u6703\u63d0\u793a\u91cd\u555f\u4f3a\u670d\u5668\u3002\u79fb\u9664\u555f\u52d5\u5a92\u4ecb\uff0c\u7136\u5f8c\u91cd\u555f\u4f3a\u670d\u5668\u3002\u9032\u5165\u7cfb\u7d71\u5f8c\uff0c\u60a8\u5c07\u770b\u5230CentOS\u7684\u767b\u9304\u754c\u9762\u3002<\/p>\n<h2 id=\"4-%e7%b3%bb%e7%b5%b1%e6%9b%b4%e6%96%b0%e8%88%87%e5%9f%ba%e6%9c%ac%e9%85%8d%e7%bd%ae-EHGTfaXelt\">4. \u7cfb\u7d71\u66f4\u65b0\u8207\u57fa\u672c\u914d\u7f6e<\/h2>\n<p>\u9996\u6b21\u767b\u9304\u5f8c\uff0c\u5efa\u8b70\u9032\u884c\u7cfb\u7d71\u66f4\u65b0\u548c\u57fa\u672c\u914d\u7f6e\uff1a<\/p>\n<pre><code>sudo yum update -y<\/code><\/pre>\n<p>\u9019\u689d\u547d\u4ee4\u5c07\u66f4\u65b0\u6240\u6709\u5df2\u5b89\u88dd\u7684\u8edf\u9ad4\u5305\u3002\u63a5\u4e0b\u4f86\uff0c\u60a8\u53ef\u4ee5\u6839\u64da\u9700\u6c42\u5b89\u88dd\u5176\u4ed6\u5fc5\u8981\u7684\u8edf\u9ad4\u5305\uff0c\u4f8b\u5982\uff1a<\/p>\n<pre><code>sudo yum install httpd -y<\/code><\/pre>\n<p>\u9019\u689d\u547d\u4ee4\u5c07\u5b89\u88ddApache\u7db2\u9801\u4f3a\u670d\u5668\u3002<\/p>\n<h2 id=\"5-%e5%ae%89%e5%85%a8%e6%80%a7%e9%85%8d%e7%bd%ae-EHGTfaXelt\">5. \u5b89\u5168\u6027\u914d\u7f6e<\/h2>\n<p>\u70ba\u4e86\u78ba\u4fdd\u4f3a\u670d\u5668\u7684\u5b89\u5168\u6027\uff0c\u5efa\u8b70\u9032\u884c\u4ee5\u4e0b\u914d\u7f6e\uff1a<\/p>\n<ul>\n<li><strong>\u9632\u706b\u7246\u8a2d\u5b9a\uff1a<\/strong>\u4f7f\u7528firewalld\u4f86\u7ba1\u7406\u9632\u706b\u7246\u898f\u5247\u3002<\/li>\n<li><strong>SELinux\u8a2d\u5b9a\uff1a<\/strong>\u78ba\u4fddSELinux\u8655\u65bc\u555f\u7528\u72c0\u614b\uff0c\u4ee5\u589e\u5f37\u7cfb\u7d71\u5b89\u5168\u6027\u3002<\/li>\n<li><strong>\u5b9a\u671f\u66f4\u65b0\uff1a<\/strong>\u5b9a\u671f\u6aa2\u67e5\u4e26\u66f4\u65b0\u7cfb\u7d71\uff0c\u4ee5\u4fee\u88dc\u5b89\u5168\u6f0f\u6d1e\u3002<\/li>\n<\/ul>\n<h2 id=\"%e7%b8%bd%e7%b5%90-EHGTfaXelt\">\u7e3d\u7d50<\/h2>\n<p>\u90e8\u7f72CentOS\u4f3a\u670d\u5668\u7684\u6d41\u7a0b\u76f8\u5c0d\u7c21\u55ae\uff0c\u5f9e\u6e96\u5099\u5de5\u4f5c\u5230\u5b89\u88dd\u3001\u914d\u7f6e\u53ca\u5b89\u5168\u6027\u8a2d\u7f6e\uff0c\u5747\u53ef\u4f9d\u7167\u4e0a\u8ff0\u6b65\u9a5f\u9032\u884c\u3002\u900f\u904e\u9019\u4e9b\u6b65\u9a5f\uff0c\u60a8\u53ef\u4ee5\u5feb\u901f\u642d\u5efa\u4e00\u500b\u7a69\u5b9a\u7684\u4f3a\u670d\u5668\u74b0\u5883\u3002\u5982\u679c\u60a8\u9700\u8981\u9032\u4e00\u6b65\u7684\u652f\u6301\u6216\u5c0b\u627e\u5408\u9069\u7684 <a href=\"https:\/\/server.hk\">VPS<\/a> \u89e3\u6c7a\u65b9\u6848\uff0c\u8acb\u8a2a\u554f\u6211\u5011\u7684\u7db2\u7ad9\u4ee5\u7372\u53d6\u66f4\u591a\u8cc7\u8a0a\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u4e86\u89e3CentOS\u4f3a\u670d\u5668\u90e8\u7f72\u6d41\u7a0b\uff0c\u5f9e\u5b89\u88dd\u5230\u914d\u7f6e\uff0c\u52a9\u60a8\u5feb\u901f\u642d\u5efa\u7a69\u5b9a\u7684\u4f3a\u670d\u5668\u74b0\u5883\u3002<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[4924],"tags":[],"class_list":["post-44066","post","type-post","status-publish","format-standard","hentry","category-setup-tutorials"],"_links":{"self":[{"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/posts\/44066","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/comments?post=44066"}],"version-history":[{"count":1,"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/posts\/44066\/revisions"}],"predecessor-version":[{"id":44067,"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/posts\/44066\/revisions\/44067"}],"wp:attachment":[{"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/media?parent=44066"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/categories?post=44066"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/tags?post=44066"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}