{"id":24417,"date":"2025-04-19T10:02:44","date_gmt":"2025-04-19T02:02:44","guid":{"rendered":"https:\/\/www.wsisp.com\/helps\/24417.html"},"modified":"2025-04-19T10:02:44","modified_gmt":"2025-04-19T02:02:44","slug":"%e6%90%ad%e5%bb%ba%e6%9c%ac%e5%9c%b0yum%e6%ba%90","status":"publish","type":"post","link":"https:\/\/www.wsisp.com\/helps\/24417.html","title":{"rendered":"\u642d\u5efa\u672c\u5730yum\u6e90"},"content":{"rendered":"<h4>\u4e00\u3001\u73af\u5883\u51c6\u5907<\/h4>\n<p>1.\u51c6\u59072-3\u53f0\u865a\u62df\u673a&#xff0c;\u4e00\u53f0\u4e3a\u670d\u52a1\u7aef&#xff08;\u5b89\u88c5yum\u6e90&#xff09;&#xff0c;\u5176\u4f59\u7684\u4e3a\u5ba2\u6237\u7aef&#xff08;\u6d4b\u8bd5yum\u6e90\u5b89\u88c5\u7ed3\u679c&#xff09;&#xff0c;\u6700\u597d\u662f\u540c\u7f51\u6bb5\u7684\u3002<\/p>\n<table border=\"1\" cellpadding=\"1\" cellspacing=\"1\" style=\"width:500px\">\n<tbody>\n<tr>\n<td style=\"width:243px\">IP\u5730\u5740<\/td>\n<td style=\"width:130px\">\u89d2\u8272<\/td>\n<td style=\"width:126px\">\u5907\u6ce8<\/td>\n<\/tr>\n<tr>\n<td style=\"width:243px\">192.168.116.5<\/td>\n<td style=\"width:130px\">\u670d\u52a1\u7aef<\/td>\n<td style=\"width:126px\">\u5c06\u5b8c\u6574\u955c\u50cf\u4e0a\u4f20\u5230\u8fd9\u53f0\u673a\u5668<\/td>\n<\/tr>\n<tr>\n<td style=\"width:243px\">192.168.116.15<\/td>\n<td style=\"width:130px\">\u5ba2\u6237\u7aef<\/td>\n<td style=\"width:126px\"><\/td>\n<\/tr>\n<tr>\n<td style=\"width:243px\">192.168.116.25<\/td>\n<td style=\"width:130px\">\u5ba2\u6237\u7aef<\/td>\n<td style=\"width:126px\"><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>2.\u51c6\u5907\u955c\u50cf\u6587\u4ef6&#xff0c;\u8fd9\u91cc\u4ee5CentOS-7-x86_64-2009&#xff0c;\u5f53\u7136\u6700\u597d\u662f\u4f7f\u7528CentOS-7-x86_64-Everything-2207-02.iso&#xff08;\u8fd9\u662f\u5b8c\u6574\u7248&#xff0c;\u5305\u542b\u4e86\u6240\u6709\u8f6f\u4ef6\u7ec4\u4ef6&#xff0c;\u5f53\u7136\u4f53\u79ef\u4e5f\u5e9e\u5927&#xff0c;\u9ad8\u8fbe9.58G\u3002\u5bf9\u5b8c\u6574\u7248\u5b89\u88c5\u76d8\u7684\u8f6f\u4ef6\u8fdb\u884c\u8865\u5145&#xff0c;\u96c6\u6210\u6240\u6709\u8f6f\u4ef6&#xff1b;\u4e0d\u8981\u4f7f\u7528mini\u7248&#xff09;<\/p>\n<p>3.\u51c6\u5907\u8fdc\u7a0b\u8f6f\u4ef6&#xff0c;secucrt\u6216\u8005FinalShell\u3001xshell\u90fd\u53ef<\/p>\n<p>4.\u5173\u95ed\u9632\u706b\u5899&#xff0c;\u6bcf\u4e00\u53f0\u90fd\u8981\u5173\u95ed&#xff0c;\u5305\u62ecselinux\u3002<\/p>\n<p>[root&#064;test1 yum.repos.d]# systemctl stop firewalld [root&#064;test1 yum.repos.d]# systemctl disabled firewalld\u00a0 \u00a0 \/\/\u8bbe\u7f6e\u9632\u706b\u5899\u5f00\u673a\u4e0d\u81ea\u542f root&#064;test1\u00a0yum.repos.d]# setenforce 0\u00a0 \u00a0 \u00a0 \u00a0 \/\/\u5c06selinux\u4e34\u65f6\u72b6\u6001\u8c03\u6574\u4e3a\u5f00\u542f [root&#064;test1\u00a0yum.repos.d]# getenforce\u00a0 \u00a0 \u00a0 \u00a0 \/\/\u67e5\u770bselinux\u72b6\u6001 Permissive<\/p>\n<p>\u6700\u597d\u662f\u8fdb\u5165\u914d\u7f6e\u6587\u4ef6\u5c06\u72b6\u6001\u6539\u4e3adisabled<\/p>\n<p>[root&#064;test1 yum.repos.d]# vim \/etc\/selinux\/config\u00a0 \u00a0 \/\/\u8fdb\u5165selinux\u7684\u914d\u7f6e\u6587\u4ef6<\/p>\n<p> # This file controls the state of SELinux on the system. # SELINUX&#061; can take one of these three values: # \u00a0 \u00a0 enforcing &#8211; SELinux security policy is enforced. # \u00a0 \u00a0 permissive &#8211; SELinux prints warnings instead of enforcing. # \u00a0 \u00a0 disabled &#8211; No SELinux policy is loaded. SELINUX&#061;disabled\u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \/\/\u6b64\u65f6\u72b6\u6001\u7531\u539f\u672c\u7684enforcing\u6539\u4e3a\u4e86disabled # SELINUXTYPE&#061; can take one of three values: # \u00a0 \u00a0 targeted &#8211; Targeted processes are protected, # \u00a0 \u00a0 minimum &#8211; Modification of targeted policy. Only selected processes are protected.\u00a0 # \u00a0 \u00a0 mls &#8211; Multi Level Security protection. SELINUXTYPE&#061;targeted<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"324\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/04\/20250419020241-6803044198c24.png\" width=\"1028\" \/><\/p>\n<p>\/\/\u6ce8&#xff0c;\u914d\u7f6e\u672c\u5730yum\u6e90\u8981\u5c06\u7f51\u5173\u6539\u6389&#xff0c;\u4f7f\u5176\u4e0d\u80fd\u8054\u7f51<\/p>\n<h4>\u4e8c\u3001\u5f00\u59cb\u914d\u7f6eyum\u6e90<\/h4>\n<p>1.\u7528xshell\u8fde\u4e0a\u673a\u5668\u540e&#xff0c;\u5c06\u955c\u50cf\u6587\u4ef6\u4e0a\u4f20&#xff0c;\u9996\u5148\u70b9\u51fb\u56fe\u4e2d\u6240\u6307\u6807\u8bc6<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"582\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/04\/20250419020241-68030441d698e.png\" width=\"960\" \/><\/p>\n<p>2.\u70b9\u51fb\u4e4b\u540e\u8fdb\u5165\u5982\u4e0b\u754c\u9762&#xff0c;\u6b64\u65f6\u627e\u5230\u4f60\u8981\u4e0a\u4f20\u7684\u955c\u50cf<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"698\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/04\/20250419020242-680304421eaf4.png\" width=\"1200\" \/><\/p>\n<p>3.\u627e\u5230\u955c\u50cf\u4e4b\u540e&#xff0c;\u53f3\u51fb\u9f20\u6807&#xff0c;\u7136\u540e\u70b9\u51fb\u4f20\u8f93<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"771\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/04\/20250419020242-680304427e4ef.png\" width=\"1200\" \/><\/p>\n<p>4.\u5907\u4efdyum\u6e90<\/p>\n<p>[root&#064;test1\u00a0~]# cd \/etc\/yum.repos.d \/etc\/yum.repos.d \u00a0\/\/yum\u7684\u914d\u7f6e\u6587\u4ef6\u6240\u5728<\/p>\n<p>[root&#064;test1\u00a0yum.repos.d]# mkdir bak [root&#064;test1\u00a0yum.repos.d]# ls bak \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0CentOS-Media.repo CentOS-Base.repo \u00a0 \u00a0 \u00a0 CentOS-Sources.repo CentOS-CR.repo \u00a0 \u00a0 \u00a0 \u00a0 CentOS-Vault.repo CentOS-Debuginfo.repo \u00a0CentOS-x86_64-kernel.repo CentOS-fasttrack.repo [root&#064;test1\u00a0yum.repos.d]# mv *.repo bak\/ [root&#064;test1\u00a0yum.repos.d]# ls bak<\/p>\n<p>\/\/\u6ce8\u6bcf\u53f0\u673a\u5668\u90fd\u8981\u8fdb\u884c\u8fd9\u4e00\u6b65\u64cd\u4f5c<\/p>\n<p>5.\u521b\u5efayum_http.repo\u6587\u4ef6<\/p>\n<p>[root&#064;test1 yum.repos.d]# mkdir yum_http.repo [root&#064;test1 yum.repos.d]# vim yum_http.repo<\/p>\n<p>\u5c06\u4e00\u4e0b\u5185\u5bb9\u5199\u5165<\/p>\n<p>[centos] name&#061;centos\u00a0 \u00a0 \u00a0 \u00a0 baseurl&#061;file:\/\/\/opt\/centos\u00a0 gpgcheck&#061;0 enabled&#061;1<img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"136\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/04\/20250419020242-68030442e0c3a.png\" width=\"535\" \/><\/p>\n<p>[root&#064;test1 yum.repos.d]# ls \/opt\/centos ls: \u65e0\u6cd5\u8bbf\u95ee\/opt\/centos: \u6ca1\u6709\u90a3\u4e2a\u6587\u4ef6\u6216\u76ee\u5f55 [root&#064;test1 yum.repos.d]# mkdir \u00a0\/opt\/centos [root&#064;test1 yum.repos.d]# cd \/opt\/centos [root&#064;test1 centos]# ls [root&#064;test1 centos]# ls CentOS-7-x86_64-DVD-2009.iso [root&#064;test1 centos]# mount \/opt\/centos\/CentOS-7-x86_64-DVD-2009.iso \/opt\/centos\u00a0 \u00a0 \/\/\u6302\u8f7d\u955c\u50cf\u6587\u4ef6&#xff0c;\u7b80\u5355\u6302\u8f7dmount: \/dev\/loop0 \u5199\u4fdd\u62a4&#xff0c;\u5c06\u4ee5\u53ea\u8bfb\u65b9\u5f0f\u6302\u8f7d<\/p>\n<p>6.\u5b89\u88c5httpd\u670d\u52a1<\/p>\n<p>[root&#064;test1 yum.repos.d]# yum -y install httpd<img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"50\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/04\/20250419020243-68030443099fd.png\" width=\"604\" \/><\/p>\n<p>7.\u914d\u7f6ehttpd\u670d\u52a1<\/p>\n<p>[root&#064;test1\u00a0~]# cd \/var\/www\/html\/\u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \/\/\u8fdb\u5165\u5230httpd\u7684\u9ed8\u8ba4\u76ee\u5f55 [root&#064;test1\u00a0html]# ll \u603b\u7528\u91cf 0 [root&#064;test1\u00a0html]# mkdir centos\u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \/\/\u521b\u5efa\u4e00\u4e2acentos\u76ee\u5f55 [root&#064;test1\u00a0html]# ll \u603b\u7528\u91cf 0 drwxr-xr-x. 2 root root 6 4\u6708 \u00a023 10:37 centos<\/p>\n<p>8.\u5c06\u5c06\/opt\/centos\u4e0b\u6302\u8f7d\u7684\u6587\u4ef6\u8f6f\u8fde\u63a5\u5230http\u9ed8\u8ba4\u8bbf\u95ee\u76ee\u5f55\u4e0b&#xff0c;\u5f53\u7136\u4e5f\u53ef\u4ee5\u4f7f\u7528cp\u547d\u4ee4&#xff0c;\u4e0d\u8fc7\u955c\u50cf\u6587\u4ef6\u8f83\u5927&#xff0c;\u4f7f\u7528\u8f6f\u8fde\u63a5\u66f4\u5feb<\/p>\n<p>[root&#064;test1 html]# ln -s \/opt\/centos\/ \/var\/www\/html\/centos<\/p>\n<p>[root&#064;test1 html]# ll \u603b\u7528\u91cf 4 lrwxrwxrwx 1 root root \u00a0 12 7\u6708 \u00a0 8 16:06 centos -&gt; \/opt\/centos\/ -rw-r&#8211;r&#8211; 1 root root 1592 7\u6708 \u00a0 8 15:50 index.html drwxr-xr-x 2 root root \u00a0 26 7\u6708 \u00a0 8 16:01 test<\/p>\n<p>9.\u542f\u52a8httpd\u670d\u52a1<\/p>\n<p>[root&#064;test1 yum.repos.d]# systemctl start httpd<\/p>\n<p>10.\u4fee\u6539http.repo&#xff08;\u8fd9\u91cc\u4ee5\u81ea\u5df1\u521b\u5efa\u7684\u540d\u5b57\u4e3a\u51c6&#xff09;\u6587\u4ef6\u4e2d\u7684baseurl\u4e3a\u670d\u52a1\u7aefip<\/p>\n<p>[root&#064;test3 yum.repos.d]# vim\u00a0http.repo\u00a0 [centos] name&#061;centos baseurl&#061;http:\/\/192.168.168.5:8080\/centos\u00a0 \u00a0 \/\/\u6b64\u5904IP\u4e3a\u670d\u52a1\u7aefIP\u5730\u5740&#xff0c;\u5982\u679c\u4fee\u6539\u4e86\u7aef\u53e3\u8bb0\u5f97\u52a0\u4e0a gpgcheck&#061;0 enabled&#061;1 [root&#064;test3 yum.repos.d]# yum -y install httpd<img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"134\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/04\/20250419020243-6803044323fe8.png\" width=\"803\" \/><\/p>\n<p>\u540e\u7eed\u4e5f\u53ef\u4ee5\u8fdb\u884c\u5176\u4ed6\u6d4b\u8bd5<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u6587\u7ae0\u6d4f\u89c8\u9605\u8bfb10w+\u6b21\uff0c\u70b9\u8d5e41\u6b21\uff0c\u6536\u85cf51\u6b21\u3002root@test1 centos]# mount \/opt\/centos\/CentOS-7-x86_64-DVD-2009.iso \/opt\/centos    \/\/\u6302\u8f7d\u955c\u50cf\u6587\u4ef6\uff0c\u7b80\u5355\u6302\u8f7dmount: \/dev\/loop0 \u5199\u4fdd\u62a4\uff0c\u5c06\u4ee5\u53ea\u8bfb\u65b9\u5f0f\u6302\u8f7d\u3002[root@test1 yum.repos.d]# vim \/etc\/selinux\/config    \/\/\u8fdb\u5165selinux\u7684\u914d\u7f6e\u6587\u4ef6\u30022.\u51c6\u5907\u955c\u50cf\u6587\u4ef6\uff0c\u8fd9\u91cc\u4ee5CentOS-7-x86_64-2009\uff0c\u5f53\u7136\u6700\u597d\u662f\u4f7f\u7528CentOS-7-x86_64-_\u642d\u5efa\u672c\u5730yum\u6e90\u670d\u52a1\u5668<\/p>\n","protected":false},"author":2,"featured_media":24410,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[59,58,43],"topic":[],"class_list":["post-24417","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-server","tag-centos","tag-linux","tag-43"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v20.3 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>\u642d\u5efa\u672c\u5730yum\u6e90 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.wsisp.com\/helps\/24417.html\" \/>\n<meta property=\"og:locale\" content=\"zh_CN\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"\u642d\u5efa\u672c\u5730yum\u6e90 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"og:description\" content=\"\u6587\u7ae0\u6d4f\u89c8\u9605\u8bfb10w+\u6b21\uff0c\u70b9\u8d5e41\u6b21\uff0c\u6536\u85cf51\u6b21\u3002root@test1 centos]# mount \/opt\/centos\/CentOS-7-x86_64-DVD-2009.iso \/opt\/centos  \/\/\u6302\u8f7d\u955c\u50cf\u6587\u4ef6\uff0c\u7b80\u5355\u6302\u8f7dmount: \/dev\/loop0 \u5199\u4fdd\u62a4\uff0c\u5c06\u4ee5\u53ea\u8bfb\u65b9\u5f0f\u6302\u8f7d\u3002[root@test1 yum.repos.d]# vim \/etc\/selinux\/config  \/\/\u8fdb\u5165selinux\u7684\u914d\u7f6e\u6587\u4ef6\u30022.\u51c6\u5907\u955c\u50cf\u6587\u4ef6\uff0c\u8fd9\u91cc\u4ee5CentOS-7-x86_64-2009\uff0c\u5f53\u7136\u6700\u597d\u662f\u4f7f\u7528CentOS-7-x86_64-_\u642d\u5efa\u672c\u5730yum\u6e90\u670d\u52a1\u5668\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.wsisp.com\/helps\/24417.html\" \/>\n<meta property=\"og:site_name\" content=\"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"article:published_time\" content=\"2025-04-19T02:02:44+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/04\/20250419020241-6803044198c24.png\" \/>\n<meta name=\"author\" content=\"admin\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"\u4f5c\u8005\" \/>\n\t<meta name=\"twitter:data1\" content=\"admin\" \/>\n\t<meta name=\"twitter:label2\" content=\"\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4\" \/>\n\t<meta name=\"twitter:data2\" content=\"2 \u5206\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/24417.html\",\"url\":\"https:\/\/www.wsisp.com\/helps\/24417.html\",\"name\":\"\u642d\u5efa\u672c\u5730yum\u6e90 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\",\"isPartOf\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#website\"},\"datePublished\":\"2025-04-19T02:02:44+00:00\",\"dateModified\":\"2025-04-19T02:02:44+00:00\",\"author\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41\"},\"breadcrumb\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/24417.html#breadcrumb\"},\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.wsisp.com\/helps\/24417.html\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/24417.html#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u9996\u9875\",\"item\":\"https:\/\/www.wsisp.com\/helps\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"\u642d\u5efa\u672c\u5730yum\u6e90\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#website\",\"url\":\"https:\/\/www.wsisp.com\/helps\/\",\"name\":\"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\",\"description\":\"\u9999\u6e2f\u670d\u52a1\u5668_\u9999\u6e2f\u4e91\u670d\u52a1\u5668\u8d44\u8baf_\u670d\u52a1\u5668\u5e2e\u52a9\u6587\u6863_\u670d\u52a1\u5668\u6559\u7a0b\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.wsisp.com\/helps\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"zh-Hans\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41\",\"name\":\"admin\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"zh-Hans\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery\",\"contentUrl\":\"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery\",\"caption\":\"admin\"},\"sameAs\":[\"http:\/\/wp.wsisp.com\"],\"url\":\"https:\/\/www.wsisp.com\/helps\/author\/admin\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"\u642d\u5efa\u672c\u5730yum\u6e90 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.wsisp.com\/helps\/24417.html","og_locale":"zh_CN","og_type":"article","og_title":"\u642d\u5efa\u672c\u5730yum\u6e90 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","og_description":"\u6587\u7ae0\u6d4f\u89c8\u9605\u8bfb10w+\u6b21\uff0c\u70b9\u8d5e41\u6b21\uff0c\u6536\u85cf51\u6b21\u3002root@test1 centos]# mount \/opt\/centos\/CentOS-7-x86_64-DVD-2009.iso \/opt\/centos  \/\/\u6302\u8f7d\u955c\u50cf\u6587\u4ef6\uff0c\u7b80\u5355\u6302\u8f7dmount: \/dev\/loop0 \u5199\u4fdd\u62a4\uff0c\u5c06\u4ee5\u53ea\u8bfb\u65b9\u5f0f\u6302\u8f7d\u3002[root@test1 yum.repos.d]# vim \/etc\/selinux\/config  \/\/\u8fdb\u5165selinux\u7684\u914d\u7f6e\u6587\u4ef6\u30022.\u51c6\u5907\u955c\u50cf\u6587\u4ef6\uff0c\u8fd9\u91cc\u4ee5CentOS-7-x86_64-2009\uff0c\u5f53\u7136\u6700\u597d\u662f\u4f7f\u7528CentOS-7-x86_64-_\u642d\u5efa\u672c\u5730yum\u6e90\u670d\u52a1\u5668","og_url":"https:\/\/www.wsisp.com\/helps\/24417.html","og_site_name":"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","article_published_time":"2025-04-19T02:02:44+00:00","og_image":[{"url":"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/04\/20250419020241-6803044198c24.png"}],"author":"admin","twitter_card":"summary_large_image","twitter_misc":{"\u4f5c\u8005":"admin","\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4":"2 \u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.wsisp.com\/helps\/24417.html","url":"https:\/\/www.wsisp.com\/helps\/24417.html","name":"\u642d\u5efa\u672c\u5730yum\u6e90 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","isPartOf":{"@id":"https:\/\/www.wsisp.com\/helps\/#website"},"datePublished":"2025-04-19T02:02:44+00:00","dateModified":"2025-04-19T02:02:44+00:00","author":{"@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41"},"breadcrumb":{"@id":"https:\/\/www.wsisp.com\/helps\/24417.html#breadcrumb"},"inLanguage":"zh-Hans","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.wsisp.com\/helps\/24417.html"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.wsisp.com\/helps\/24417.html#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9875","item":"https:\/\/www.wsisp.com\/helps"},{"@type":"ListItem","position":2,"name":"\u642d\u5efa\u672c\u5730yum\u6e90"}]},{"@type":"WebSite","@id":"https:\/\/www.wsisp.com\/helps\/#website","url":"https:\/\/www.wsisp.com\/helps\/","name":"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","description":"\u9999\u6e2f\u670d\u52a1\u5668_\u9999\u6e2f\u4e91\u670d\u52a1\u5668\u8d44\u8baf_\u670d\u52a1\u5668\u5e2e\u52a9\u6587\u6863_\u670d\u52a1\u5668\u6559\u7a0b","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.wsisp.com\/helps\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"zh-Hans"},{"@type":"Person","@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41","name":"admin","image":{"@type":"ImageObject","inLanguage":"zh-Hans","@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/image\/","url":"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery","contentUrl":"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery","caption":"admin"},"sameAs":["http:\/\/wp.wsisp.com"],"url":"https:\/\/www.wsisp.com\/helps\/author\/admin"}]}},"_links":{"self":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts\/24417","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/comments?post=24417"}],"version-history":[{"count":0,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts\/24417\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/media\/24410"}],"wp:attachment":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/media?parent=24417"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/categories?post=24417"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/tags?post=24417"},{"taxonomy":"topic","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/topic?post=24417"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}