{"id":344,"date":"2019-06-01T14:57:11","date_gmt":"2019-06-01T06:57:11","guid":{"rendered":"https:\/\/wp.yaan.ga\/?p=335"},"modified":"2019-06-01T14:57:11","modified_gmt":"2019-06-01T06:57:11","slug":"%e7%a6%bb%e7%ba%bf%e9%83%a8%e7%bd%b2%ef%bc%9a%e5%9f%ba%e4%ba%8ecentos7%e6%90%ad%e5%bb%ba%e7%a6%bb%e7%ba%bfyum%e6%ba%90","status":"publish","type":"post","link":"https:\/\/wp.625300.xyz\/?p=344","title":{"rendered":"\u79bb\u7ebf\u90e8\u7f72\uff1a\u57fa\u4e8eCentOS7\u642d\u5efa\u79bb\u7ebfyum\u6e90"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">\u8f6c\u8f7d\u81ea\uff1a <a href=\"https:\/\/blog.csdn.net\/u010886217\/article\/details\/88647591\">https:\/\/blog.csdn.net\/u010886217\/article\/details\/88647591<\/a> <\/p>\n\n\n\n<h1 class=\"wp-block-heading\">\u4e00\u3001\u76ee\u7684<\/h1>\n\n\n\n<p class=\"wp-block-paragraph\">\u5f53\u96c6\u7fa4\u90e8\u7f72\u5728\u79bb\u7ebf\u73af\u5883\u4e0b\uff0c\u800c\u7cfb\u7edf\u53c8\u662f\u6bd4\u8f83\u7eaf\u51c0\u7684\u65f6\u5019\uff0c\u662f\u6ca1\u6709yum\u6e90\u53bb\u5b89\u88c5\u76f8\u5e94\u4f9d\u8d56\u7684\u3002\u6240\u4ee5\u5bfc\u81f4\uff0c\u5b89\u88c5\u7a0b\u5e8f\u5f88\u591a\u5931\u8d25\u3002\u6240\u4ee5\uff0c\u51b3\u5b9a\u81ea\u5df1\u521b\u5efa\u79c1\u6709\u7684yum\u6e90\uff0c\u4ece\u800c\u53ef\u4ee5\u5728\u79bb\u7ebf\u73af\u5883\u4e2d\u4f7f\u7528yum\u547d\u4ee4\u5b89\u88c5\u5fc5\u5907\u7684\u6587\u4ef6\u3002<\/p>\n\n\n\n<h1 class=\"wp-block-heading\">\u4e8c\u3001\u6b65\u9aa4<\/h1>\n\n\n\n<h3 class=\"wp-block-heading\">1.\u4e0b\u8f7d\u5305\u542byum\u6e90\u7684\u955c\u50cf\u6587\u4ef6\uff08\u5373centos7.4\u5b89\u88c5\u6587\u4ef6\uff09<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">\u8fdb\u5165\u4e0b\u8f7d\u521d\u59cb\u9875\uff0c\u9009\u62e9\u5bf9\u5e94\u7248\u672c7.4.1708<br>http:\/\/vault.centos.org\/<br>\u9009\u62e9Europe\u7684\u7b2c\u4e00\u4e2a<br>http:\/\/vault.centos.org\/notonvault.html<br>\u9009\u62e9\u5bf9\u5e94\u7248\u672c\uff0c\u5728\u6b64\u9009\u62e9\u4e0b\u8f7d7.4<br>http:\/\/mirror.nsc.liu.se\/centos-store\/7.4.1708\/isos\/x86_64\/<br>\u4e0b\u8f7d\u4f9d\u636e\u9700\u6c42\u800c\u5b9a\uff0c\u6700\u597d\u4e0b\u8f7deveryting\u7248\u672c\uff0c\u4f46\u662f\u56e0\u4e3a\u592a\u5927\uff0c\u672c\u6587\u4e0b\u8f7dCentOS-7-x86_64-DVD-1708.iso\u7248\u672c<br>CentOS-7-x86_64-DVD-1708.iso<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/img-blog.csdnimg.cn\/20190318190303804.png?x-oss-process=image\/watermark,type_ZmFuZ3poZW5naGVpdGk,shadow_10,text_aHR0cHM6Ly9ibG9nLmNzZG4ubmV0L3UwMTA4ODYyMTc=,size_16,color_FFFFFF,t_70\" alt=\"\"\/><\/figure>\n\n\n\n<h3 class=\"wp-block-heading\">2.\u4e0a\u4f20\u5230\u670d\u52a1\u5668<\/h3>\n\n\n\n<pre class=\"wp-block-code\"><code>\/opt\/softwares\/CentOS-7-x86_64-DVD-1708.iso<\/code><\/pre>\n\n\n\n<h3 class=\"wp-block-heading\">3.\u6302\u7740\u955c\u50cf\u5230\u670d\u52a1\u5668<\/h3>\n\n\n\n<pre class=\"wp-block-code\"><code>mount \/opt\/softwares\/CentOS-7-x86_64-DVD-1708.iso \/mnt\/cdrom\/<\/code><\/pre>\n\n\n\n<h3 class=\"wp-block-heading\">4.\u5c06\u6302\u5728\u76d8\u5185\u5bb9\u590d\u5236\u5230\u672c\u5730\u76ee\u5f55<\/h3>\n\n\n\n<pre class=\"wp-block-code\"><code>mkdir \/media\/CentOS\/ cp -fr \/mnt\/cdrom\/* \u00a0\/media\/CentOS\/<\/code><\/pre>\n\n\n\n<h3 class=\"wp-block-heading\">5.\u5c06Yum\u6e90\u4ed3\u5e93repo\u5907\u4efd<\/h3>\n\n\n\n<pre class=\"wp-block-code\"><code>mkdir \/etc\/yum.repos.d\/bakmv \/etc\/yum.repos.d\/* \/etc\/yum.repos.d\/bak<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">\u5907\u6ce8\uff1a\u4e00\u5b9a\u79fb\u9664\u6216\u8005\u91cd\u547d\u540d\/etc\/yum.repos.d\/CentOS-Base.repo\u8fd9\u4e2a\u6587\u4ef6\uff0c\u56e0\u4e3a\u9ed8\u8ba4\u4f1a\u9996\u5148\u8bfb\u53d6\u8fd9\u4e2a\u8bbf\u95ee\u5916\u7f51\u6e90\u7684\u6587\u4ef6<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">6.\u590d\u5236CentOS-Media.repo\u5e76\u4e14\u7f16\u8f91<\/h3>\n\n\n\n<pre class=\"wp-block-code\"><code>cp \/etc\/yum.repos.d\/bak\/CentOS-Media.repo \/etc\/yum.repos.d\/ vi \/etc\/yum.repos.d\/CentOS-Media.repo<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">\u4fee\u6539\u4e3a\uff1a<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code># CentOS-Media.repo##  This repo can be used with mounted DVD media, verify the mount point for#  CentOS-7.  You can use this repo and yum to install items directly off the#  DVD ISO that we release.## To use this repo, put in your DVD and use it with the other repos too:#  yum --enablerepo=c7-media [command]## or for ONLY the media repo, do this:##  yum --disablerepo=\\* --enablerepo=c7-media [command] [c7-media]name=CentOS-$releasever - Mediabaseurl=file:\/\/\/media\/CentOS\/      #\uff081\uff09-->\u8fd9\u4e00\u884c\u6539\u6210\u524d\u8fb9\u6211\u4eec\u65b0\u5efa\u7684CentOS\u76ee\u5f55#        file:\/\/\/media\/cdrom\/      #\uff082\uff09-->\u8fd9\u4e00\u884c\u52a0#\u53f7\u6ce8\u91ca\u6389#        file:\/\/\/media\/cdrecorder\/ #\uff083\uff09-->\u8fd9\u4e00\u884c\u52a0#\u53f7\u6ce8\u91ca\u6389gpgcheck=1enabled=1                          #\uff084\uff09-->\u8fd9\u4e00\u884c\u628a0\u6539\u62101\u6765\u542f\u7528\u6e90gpgkey=file:\/\/\/etc\/pki\/rpm-gpg\/RPM-GPG-KEY-CentOS-7<\/code><\/pre>\n\n\n\n<h3 class=\"wp-block-heading\">7.\u5378\u8f7d\u955c\u50cf<\/h3>\n\n\n\n<pre class=\"wp-block-code\"><code>umount \/mnt\/cdrom\/<\/code><\/pre>\n\n\n\n<h3 class=\"wp-block-heading\">8.\u68c0\u6d4b<\/h3>\n\n\n\n<pre class=\"wp-block-code\"><code>yum list\u7ed3\u679c\uff1asystemtap-server.x86_64                   3.1-3.el7                           c7-media t1lib.x86_64                              5.1.2-14.el7                        c7-media taglib.x86_64                             1.8-7.20130218git.el7               c7-media tagsoup.noarch                            1.2.1-8.el7                         c7-media talk.x86_64                               0.17-46.el7                         c7-media talk-server.x86_64                        0.17-46.el7                         c7-media targetcli.noarch                          2.1.fb46-1.el7                      c7-media targetd.noarch                            0.8.6-1.el7                         c7-media tbb.x86_64                                4.1-9.20130314.el7                  c7-media tbb-devel.x86_64                          4.1-9.20130314.el7                  c7-media tboot.x86_64                              1:1.9.5-1.el7                       c7-media tcl.x86_64                                1:8.5.13-8.el7                      c7-media tcl-devel.x86_64                          1:8.5.13-8.el7                      c7-media tcl-pgtcl.x86_64                          2.0.0-5.el7                         c7-media tcp_wrappers.x86_64                       7.6-77.el7                          c7-media tcp_wrappers-devel.x86_64                 7.6-77.el7                          c7-media tcpdump.x86_64                            14:4.9.0-5.el7                      c7-media tcsh.x86_64                               6.18.01-15.el7                      c7-media tdb-tools.x86_64                          1.3.12-2.el7                        c7-media telepathy-farstream.x86_64                0.6.0-5.el7                         c7-media telepathy-filesystem.noarch               0.0.2-6.el7                         c7-media telepathy-gabble.x86_64                   0.18.1-4.el7                        c7-media<\/code><\/pre>\n\n\n\n<h1 class=\"wp-block-heading\">\uff08\u6210\u529f\u90e8\u7f72\u672c\u5730\u6e90~\uff09<\/h1>\n\n\n\n<h1 class=\"wp-block-heading\">\u4e09\u3001\u5171\u4eabyum\u6e90<\/h1>\n\n\n\n<p class=\"wp-block-paragraph\">1.\u5728\u672c\u5730yum\u6e90\u914d\u7f6e\u5b8c\u6210\u4e4b\u540e\u5b89\u88c5apache<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>yum install httpd systemctl start httpdsystemctl enable httpdsystemctl stop firewalldsystemctl disable firewalld<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">2.\u521b\u5efa\u6302\u8f7d\u6587\u4ef6\u76ee\u5f55<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>mkdir \/var\/www\/html\/source7.4<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">3.\u6302\u8f7d\u955c\u50cf<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>mount \/opt\/softwares\/CentOS-7-x86_64-DVD-1708.iso  \/var\/www\/html\/source7.4\/\n<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">4.\u5f00\u673a\u81ea\u52a8\u6302\u8f7d<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>\uff081\uff09\u7f16\u8f91rc.local\u5199\u5165vim \/etc\/rc.d\/rc.local mount \/opt\/softwares\/CentOS-7-x86_64-DVD-1708.iso  \/var\/www\/html\/source7.4\/\uff082\uff09\u4fee\u6539\u6743\u9650chmod +x \/etc\/rc.d\/rc.local<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">5.\u8bbf\u95ee<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>http:\/\/IP\/source7.4\/<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">\u7ed3\u679c<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/img-blog.csdnimg.cn\/20190319123925213.png?x-oss-process=image\/watermark,type_ZmFuZ3poZW5naGVpdGk,shadow_10,text_aHR0cHM6Ly9ibG9nLmNzZG4ubmV0L3UwMTA4ODYyMTc=,size_16,color_FFFFFF,t_70\" alt=\"\"\/><\/figure>\n","protected":false},"excerpt":{"rendered":"<p>\u8f6c\u8f7d\u81ea\uff1a https:\/\/blog.csdn.net\/u010886217\/article\/details\/8&#8230;<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[32],"tags":[],"class_list":["post-344","post","type-post","status-publish","format-standard","hentry","category-32"],"_links":{"self":[{"href":"https:\/\/wp.625300.xyz\/index.php?rest_route=\/wp\/v2\/posts\/344","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wp.625300.xyz\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/wp.625300.xyz\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/wp.625300.xyz\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/wp.625300.xyz\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=344"}],"version-history":[{"count":0,"href":"https:\/\/wp.625300.xyz\/index.php?rest_route=\/wp\/v2\/posts\/344\/revisions"}],"wp:attachment":[{"href":"https:\/\/wp.625300.xyz\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=344"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/wp.625300.xyz\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=344"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/wp.625300.xyz\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=344"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}