{"id":962,"date":"2014-12-23T16:35:09","date_gmt":"2014-12-23T08:35:09","guid":{"rendered":"http:\/\/blog.amjet.biz\/IT\/?p=962"},"modified":"2015-04-10T23:56:39","modified_gmt":"2015-04-10T15:56:39","slug":"centos-7-%e5%ae%89%e8%a3%9d%e7%ad%86%e8%a8%98","status":"publish","type":"post","link":"https:\/\/blog.amjet.biz\/IT\/?p=962","title":{"rendered":"CentOS 7 \u5b89\u88dd\u7b46\u8a18"},"content":{"rendered":"<p>\u9019\u6b21\u5b89\u88dd\u6709\u5e7e\u500b issue\uff0c\u96a8\u624b\u8a18\u9304\u4e00\u4e0b<\/p>\n<p>1. UEFI BIOS<\/p>\n<p>\u5982\u679c BIOS \u662f\u8a2d\u5b9a\u6210 UEFI \u800c\u4e0d\u662f Legacy \u7684\u8a71\uff0c\u9664\u4e86 \/boot \u4ee5\u5916\u9084\u8981\u6709\u4e00\u500b \/boot\/efi mount point\uff0c\u5426\u5247 installer \u6703\u4e00\u76f4 complain &#8220;you have not created a bootloader stage1 target device&#8221; \u800c\u7121\u6cd5\u7e7c\u7e8c\uff0c\u9019\u5169\u500b partition \u61c9\u8a72\u90fd\u662f 1G \u5c31\u5920\u4e86<\/p>\n<p>2. update notify \u6a5f\u5236<\/p>\n<p>CentOS 6 \u53ef\u4ee5\u6293\u820a\u7248\u7684 yum-updatesd \u4f86\u7528\uff0c\u9019\u4e00\u7248\u81ea\u5df1 build \u51fa rpm \u5b89\u88dd\u5f8c\u4e0d\u80fd\u6b63\u5e38\u57f7\u884c\uff0c\u4e0d\u904e\u9019\u500b\u6a5f\u5236\u61c9\u8a72\u662f\u8981\u7528 yum-cron \u4f86\u505a\uff0c\u9019\u500b <a href=\"https:\/\/community.centminmod.com\/threads\/automatic-nightly-yum-updates-with-yum-cron.1507\/\">\u7db2\u5740<\/a> \u6709\u4ecb\u7d39<\/p>\n<p>3. ftp \u7121\u6cd5\u4e0a\u50b3\u6a94\u6848<\/p>\n<p>\u67b6\u597d ftp server \u5f8c\uff0cftp client \u4e0a\u50b3\u6a94\u6848\u6642\u90fd\u6703\u6709\u7121\u6cd5\u5beb\u5165\u6a94\u6848\u7684\u932f\u8aa4\u8a0a\u606f\uff0c\u9019\u500b\u662f selinux \u7684\u5b89\u5168\u6a5f\u5236\uff0c\u6700\u5feb\u7684\u65b9\u6cd5\u662f\u4fee\u6539\u00a0\/etc\/sysconfig\/selinux\uff0c\u8a2d\u5b9a\u00a0SELINUX=disabled<\/p>\n<p>4. \u7121\u6cd5\u986f\u793a\u4e2d\u6587<\/p>\n<p>\u5b89\u88dd\u6642\u9078\u64c7 minimal \u540c\u6642\u6709\u9078\u64c7\u4e2d\u6587\u652f\u63f4\uff0c\u4f46\u662f\u5f8c\u4f86 run firefox \u6642\u4e2d\u6587\u90fd\u7121\u6cd5\u986f\u793a\uff0c\u5b89\u88dd\u00a0cjkuni-uming-fonts \u53ca\u00a0cjkuni-ukai-fonts \u90192\u500b\u5957\u4ef6\u53ef\u4ee5\u89e3\u6c7a\u554f\u984c\uff0c\u61c9\u8a72\u53ea\u88dd\u4e00\u500b\u4e5f\u53ef\u4ee5\u5427<\/p>\n<p>5. ftp mirror<\/p>\n<p>\u904e\u53bb\u5e38\u7528\u7684 ftp mirror \u5de5\u5177\u50cf mirror\u3001mirrordir \u90fd\u4e0d\u898b\u4e86\uff0c\u53ea\u5269\u4e0b lftp \u53ef\u7528\uff0c\u5728\u7db2\u8def\u4e0a\u627e\u5230\u9019\u6bb5 shell script \u53ef\u4ee5\u66ff\u4ee3<\/p>\n<p>#!\/bin\/sh<\/p>\n<p>CENTOS_HOST=centos.mirrors.tds.net<br \/>\nCENTOS_SOURCEFOLDER=\/pub\/linux\/centos\/7\/os\/x86_64<br \/>\nCENTOS_TARGETFOLDER=&lt;your target folder&gt;<\/p>\n<p>lftp -f &#8221;<br \/>\nopen $CENTOS_HOST<br \/>\nlcd $CENTOS_SOURCEFOLDER<br \/>\nmirror -c -e -n -v $CENTOS_SOURCEFOLDER $CENTOS_TARGETFOLDER<br \/>\nbye<br \/>\n&#8221;<\/p>\n<p>6. multiboot \u8a2d\u5b9a grub2 default entry<\/p>\n<p>grub2-set-default &lt;0|1|2&#8230;&gt;<\/p>\n<p>7. \u5728\u591a\u6b21\u66f4\u65b0\u5f8c boot menu \u6703\u7d2f\u7a4d\u8a31\u591a kernel \u9078\u9805, \u4ee5\u4e0b\u6307\u4ee4\u53ef\u4ee5\u6e05\u9664\u4e26\u4e14\u53ea\u4fdd\u75592\u500b\u7248\u672c\u7684 kernel<\/p>\n<p>package-cleanup &#8211;oldkernels &#8211;count=2<\/p>\n<p>\u4ee5\u4e0a\u6307\u4ee4\u53c3\u8003\u9019\u500b <a href=\"http:\/\/www.if-not-true-then-false.com\/2012\/delete-remove-old-kernels-on-fedora-centos-red-hat-rhel\/\" target=\"_blank\">\u7db2\u5740<\/a><\/p>\n<p>[ratings]<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u9019\u6b21\u5b89\u88dd\u6709\u5e7e\u500b issue\uff0c\u96a8\u624b\u8a18\u9304\u4e00\u4e0b 1. UEFI BIOS \u5982\u679c BIOS \u662f\u8a2d\u5b9a\u6210 UEFI \u800c\u4e0d\u662f Legacy \u7684\u8a71\uff0c\u9664\u4e86 \/boot \u4ee5\u5916\u9084\u8981\u6709\u4e00\u500b \/boot\/efi mount point\uff0c\u5426\u5247 installer \u6703\u4e00\u76f4 complain &#8220;you have not created a bootloader stage1 target device&#8221; \u800c\u7121\u6cd5\u7e7c\u7e8c\uff0c\u9019\u5169\u500b partition \u61c9\u8a72\u90fd\u662f 1G \u5c31\u5920\u4e86 2. update notify \u6a5f\u5236 CentOS 6 \u53ef\u4ee5\u6293\u820a\u7248\u7684 yum-updatesd \u4f86\u7528\uff0c\u9019\u4e00\u7248\u81ea\u5df1 build \u51fa rpm \u5b89\u88dd\u5f8c\u4e0d\u80fd\u6b63\u5e38\u57f7\u884c\uff0c\u4e0d\u904e\u9019\u500b\u6a5f\u5236\u61c9\u8a72\u662f\u8981\u7528 yum-cron \u4f86\u505a\uff0c\u9019\u500b \u7db2\u5740 \u6709\u4ecb\u7d39 3. ftp \u7121\u6cd5\u4e0a\u50b3\u6a94\u6848 \u67b6\u597d [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[15],"tags":[132,130],"class_list":["post-962","post","type-post","status-publish","format-standard","hentry","category-centos","tag-centos","tag-linux"],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/blog.amjet.biz\/IT\/index.php?rest_route=\/wp\/v2\/posts\/962","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blog.amjet.biz\/IT\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.amjet.biz\/IT\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.amjet.biz\/IT\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.amjet.biz\/IT\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=962"}],"version-history":[{"count":6,"href":"https:\/\/blog.amjet.biz\/IT\/index.php?rest_route=\/wp\/v2\/posts\/962\/revisions"}],"predecessor-version":[{"id":994,"href":"https:\/\/blog.amjet.biz\/IT\/index.php?rest_route=\/wp\/v2\/posts\/962\/revisions\/994"}],"wp:attachment":[{"href":"https:\/\/blog.amjet.biz\/IT\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=962"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.amjet.biz\/IT\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=962"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.amjet.biz\/IT\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=962"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}