{"id":1549,"date":"2026-07-20T03:25:21","date_gmt":"2026-07-19T19:25:21","guid":{"rendered":"https:\/\/www.loongdi.net\/blog\/?p=1549"},"modified":"2026-07-20T03:25:21","modified_gmt":"2026-07-19T19:25:21","slug":"%e6%9c%89%e4%b8%80%e4%b8%aa%e6%a0%87%e9%a2%98-%ef%bc%82centos-6-%e6%8c%87%e5%8d%97%ef%bc%82%e3%80%82","status":"publish","type":"post","link":"https:\/\/www.loongdi.net\/blog\/1549.html","title":{"rendered":"\u6709\u4e00\u4e2a\u6807\u9898 \uff02CentOS 6 \u6307\u5357\uff02\u3002"},"content":{"rendered":"<p><h3>CentOS 6 \u7b80\u4ecb<\/h3>\n<\/p>\n<p><p>CentOS 6 \u662f\u4e00\u6b3e\u57fa\u4e8e Red Hat Enterprise Linux \u7684\u5f00\u6e90\u64cd\u4f5c\u7cfb\u7edf\uff0c\u5b83\u63d0\u4f9b\u4e86\u5b8c\u6574\u7684 Red Hat Enterprise Linux \u529f\u80fd\uff0c\u4f46\u6210\u672c\u66f4\u4f4e\uff0c\u66f4\u9002\u5408\u4e2a\u4eba\u3001\u6559\u80b2\u673a\u6784\u548c\u5c0f\u578b\u4f01\u4e1a\u4f7f\u7528\u3002CentOS 6 \u7684\u751f\u547d\u5468\u671f\u76f8\u5bf9\u8f83\u957f\uff0c\u652f\u6301\u5230 2020 \u5e74\uff0c\u8fd9\u4f7f\u5f97\u5b83\u6210\u4e3a\u8bb8\u591a\u7528\u6237\u548c\u5f00\u53d1\u8005\u7684\u9996\u9009\u64cd\u4f5c\u7cfb\u7edf\u4e4b\u4e00\u3002<\/p>\n<\/p>\n<p><h3>\u63a8\u8350\u5b89\u88c5\u7248\u672c<\/h3>\n<\/p>\n<p>\n<ol>\n<li>CentOS 6.5\uff1a\u8fd9\u662f CentOS 6 \u7684\u63a8\u8350\u7248\u672c\u4e4b\u4e00\uff0c\u5b83\u63d0\u4f9b\u4e86\u7a33\u5b9a\u7684\u6027\u80fd\u548c\u826f\u597d\u7684\u517c\u5bb9\u6027\u3002<\/li>\n<li>CentOS 6.7\uff1a\u76f8\u5bf9\u4e8e 6.5\uff0c6.7 \u589e\u52a0\u4e86\u4e00\u4e9b\u65b0\u7279\u6027\uff0c\u4f8b\u5982\u66f4\u65b0\u7684\u5185\u6838\u548c\u5b89\u5168\u8865\u4e01\u3002<\/li>\n<li>CentOS 6.9\uff1a\u8fd9\u662f CentOS 6 \u7684\u6700\u65b0\u7248\u672c\uff0c\u5305\u542b\u4e86\u6700\u65b0\u7684\u8f6f\u4ef6\u5305\u548c\u4f18\u5316\uff0c\u9002\u5408\u8ffd\u6c42\u6700\u65b0\u6280\u672f\u7684\u7528\u6237\u3002<\/li>\n<\/ol>\n<\/p>\n<p><h3>\u7cfb\u7edf\u5b89\u88c5<\/h3>\n<\/p>\n<p><p>\u4e3a\u4e86\u5b89\u88c5 CentOS 6\uff0c\u4f60\u53ef\u4ee5\u4ece\u4ee5\u4e0b\u6b65\u9aa4\u5f00\u59cb\uff1a<\/p>\n<p><pre><code>cd \/mnt\/cdrom<\/p>\r\n<p>.\/installer.sh<\/p>\r\n<p><\/code><\/pre>\n<\/p>\n<p>\u5b89\u88c5\u8fc7\u7a0b\u4e2d\uff0c\u4f60\u9700\u8981\u9009\u62e9\u8bed\u8a00\u3001\u952e\u76d8\u5e03\u5c40\u3001\u5206\u533a\u65b9\u6848\u7b49\u3002\u6839\u636e\u4f60\u7684\u9700\u6c42\uff0c\u4f60\u53ef\u4ee5\u9009\u62e9\u4e0d\u540c\u7684\u5206\u533a\u65b9\u5f0f\uff0c\u5982 LVM\uff08\u903b\u8f91\u5377\u7ba1\u7406\uff09\u5206\u533a\uff0c\u5b83\u63d0\u4f9b\u4e86\u66f4\u5927\u7684\u7075\u6d3b\u6027\u548c\u66f4\u597d\u7684\u78c1\u76d8\u7a7a\u95f4\u7ba1\u7406\u3002<\/p>\n<\/p>\n<p><h3>\u914d\u7f6e\u7f51\u7edc<\/h3>\n<\/p>\n<p><p>\u5728\u5b89\u88c5\u5b8c\u6210\u540e\uff0c\u4f60\u9700\u8981\u914d\u7f6e\u7f51\u7edc\u8fde\u63a5\u3002\u4ee5\u4e0b\u662f\u4e00\u4e2a\u914d\u7f6e\u9759\u6001 IP \u5730\u5740\u7684\u793a\u4f8b\uff1a<\/p>\n<p><pre><code>vi \/etc\/sysconfig\/network-scripts\/ifcfg-eth0<\/p>\r\n<p><\/code><\/pre>\n<\/p>\n<p>\u5728\u6587\u4ef6\u4e2d\u8bbe\u7f6e\u4ee5\u4e0b\u53c2\u6570\uff1a<\/p>\n<p><pre><code>BOOTPROTO=static<\/p>\r\n<p>IPADDR=192.168.1.100<\/p>\r\n<p>NETMASK=255.255.255.0<\/p>\r\n<p>GATEWAY=192.168.1.1<\/p>\r\n<p>DNS1=8.8.8.8<\/p>\r\n<p>DNS2=8.8.4.4<\/p>\r\n<p><\/code><\/pre>\n<\/p>\n<p>\u4fdd\u5b58\u6587\u4ef6\u5e76\u9000\u51fa\uff0c\u7136\u540e\u91cd\u65b0\u542f\u52a8\u7f51\u7edc\u670d\u52a1\uff1a<\/p>\n<p><pre><code>service network restart<\/p>\r\n<p><\/code><\/pre>\n<\/p>\n<p><h3>\u5b89\u5168\u8bbe\u7f6e<\/h3>\n<\/p>\n<p><p>\u4e3a\u4e86\u63d0\u9ad8\u7cfb\u7edf\u7684\u5b89\u5168\u6027\uff0c\u4f60\u5e94\u8be5\u6267\u884c\u4ee5\u4e0b\u6b65\u9aa4\uff1a<\/p>\n<p><pre><code>yum update<\/p>\r\n<p>yum install audit-tools<\/p>\r\n<p>auditctl -w \/ -p warx -k interesting<\/p>\r\n<p><\/code><\/pre>\n<\/p>\n<p style=\"text-align:center\"><img decoding=\"async\" src=\"https:\/\/www.loongdi.net\/blog\/wp-content\/uploads\/2026\/03\/XVp2611mQ4.jpg\" alt=\"\u6709\u4e00\u4e2a\u6807\u9898 \uff02CentOS 6 \u6307\u5357\uff02\u3002\" title=\"\u6709\u4e00\u4e2a\u6807\u9898 \uff02CentOS 6 \u6307\u5357\uff02\u3002\"><\/p>\n<p>\u8fd9\u5c06\u66f4\u65b0\u7cfb\u7edf\u5230\u6700\u65b0\u7248\u672c\uff0c\u5e76\u8bbe\u7f6e\u5ba1\u8ba1\u89c4\u5219\u6765\u76d1\u63a7\u5bf9\u6839\u76ee\u5f55\u7684\u5199\u64cd\u4f5c\u3002<\/p>\n<\/p>\n<p><h3>\u5e38\u89c1\u95ee\u9898\u89e3\u7b54<\/h3>\n<\/p>\n<p><p><b>\u95ee\u98981\uff1a<\/b> \u5982\u4f55\u67e5\u770b\u7cfb\u7edf\u7248\u672c\uff1f<\/p>\n<p><pre><code>cat \/etc\/redhat-release<\/p>\r\n<p><\/code><\/pre>\n<\/p>\n<p>\u8fd9\u5c06\u663e\u793a\u5f53\u524d\u7684 CentOS \u7248\u672c\u3002<\/p>\n<p><b>\u95ee\u98982\uff1a<\/b> \u5982\u4f55\u5b89\u88c5 Apache \u670d\u52a1\u5668\uff1f<\/p>\n<p><pre><code>yum install httpd<\/p>\r\n<p>service httpd start<\/p>\r\n<p>service httpd enable<\/p>\r\n<p><\/code><\/pre>\n<\/p>\n<p>\u8fd9\u5c06\u5b89\u88c5 Apache \u670d\u52a1\u5668\u5e76\u542f\u52a8\u5b83\u3002<\/p>\n<p><b>\u95ee\u98983\uff1a<\/b> \u5982\u4f55\u5b89\u88c5 MySQL \u6570\u636e\u5e93\uff1f<\/p>\n<p><pre><code>yum install mysql-server<\/p>\r\n<p>service mysqld start<\/p>\r\n<p>service mysqld enable<\/p>\r\n<p>mysql_secure_installation<\/p>\r\n<p><\/code><\/pre>\n<\/p>\n<p>\u8fd9\u5c06\u5b89\u88c5 MySQL \u6570\u636e\u5e93\u5e76\u542f\u52a8\u5b83\u3002\u8fd0\u884c <code>mysql_secure_installation<\/code> \u547d\u4ee4\u5c06\u914d\u7f6e MySQL \u7684\u5b89\u5168\u6027\u3002<\/p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>CentOS 6 \u7b80\u4ecb CentOS 6 \u662f\u4e00\u6b3e\u57fa\u4e8e Red Hat Enterprise Linux \u7684\u5f00\u6e90\u64cd\u4f5c\u7cfb\u7edf\uff0c\u5b83\u63d0\u4f9b\u4e86\u5b8c\u6574\u7684 Red Hat Enterprise Linux \u529f\u80fd\uff0c\u4f46\u6210\u672c\u66f4\u4f4e\uff0c\u66f4\u9002\u5408\u4e2a\u4eba\u3001\u6559\u80b2\u673a\u6784\u548c\u5c0f\u578b\u4f01\u4e1a\u4f7f\u7528\u3002&#8230;<\/p>\n","protected":false},"author":1,"featured_media":107,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3],"tags":[],"topic":[],"class_list":["post-1549","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-hw"],"_links":{"self":[{"href":"https:\/\/www.loongdi.net\/blog\/wp-json\/wp\/v2\/posts\/1549","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.loongdi.net\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.loongdi.net\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.loongdi.net\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.loongdi.net\/blog\/wp-json\/wp\/v2\/comments?post=1549"}],"version-history":[{"count":1,"href":"https:\/\/www.loongdi.net\/blog\/wp-json\/wp\/v2\/posts\/1549\/revisions"}],"predecessor-version":[{"id":1550,"href":"https:\/\/www.loongdi.net\/blog\/wp-json\/wp\/v2\/posts\/1549\/revisions\/1550"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.loongdi.net\/blog\/wp-json\/wp\/v2\/media\/107"}],"wp:attachment":[{"href":"https:\/\/www.loongdi.net\/blog\/wp-json\/wp\/v2\/media?parent=1549"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.loongdi.net\/blog\/wp-json\/wp\/v2\/categories?post=1549"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.loongdi.net\/blog\/wp-json\/wp\/v2\/tags?post=1549"},{"taxonomy":"topic","embeddable":true,"href":"https:\/\/www.loongdi.net\/blog\/wp-json\/wp\/v2\/topic?post=1549"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}