{"id":67499,"date":"2026-01-28T20:50:18","date_gmt":"2026-01-28T12:50:18","guid":{"rendered":"https:\/\/www.wsisp.com\/helps\/67499.html"},"modified":"2026-01-28T20:50:18","modified_gmt":"2026-01-28T12:50:18","slug":"%e5%86%85%e7%bd%91%e6%9c%8d%e5%8a%a1%e5%99%a8%e7%9a%84%e6%b1%82%e7%94%9f%e4%b9%8b%e8%b7%af%ef%bc%9a%e6%89%8b%e6%8a%8a%e6%89%8b%e6%90%ad%e5%bb%ba%e4%bc%81%e4%b8%9a%e7%ba%a7%e7%a6%bb","status":"publish","type":"post","link":"https:\/\/www.wsisp.com\/helps\/67499.html","title":{"rendered":"\u5185\u7f51\u670d\u52a1\u5668\u7684\u201c\u6c42\u751f\u4e4b\u8def\u201d\uff1a\u624b\u628a\u624b\u642d\u5efa\u4f01\u4e1a\u7ea7\u79bb\u7ebf YUM\/APT \u4ed3\u5e93\uff08\u544a\u522b U \u76d8\u62f7\u5305\uff09"},"content":{"rendered":"<h2>\u5185\u7f51\u670d\u52a1\u5668\u7684\u201c\u6c42\u751f\u4e4b\u8def\u201d&#xff1a;\u624b\u628a\u624b\u642d\u5efa\u4f01\u4e1a\u7ea7\u79bb\u7ebf YUM\/APT \u4ed3\u5e93&#xff08;\u544a\u522b U \u76d8\u62f7\u5305&#xff09;<\/h2>\n<p>\u4e0a\u4e00\u7bc7\u6587\u7ae0\u6211\u4eec\u89e3\u51b3\u4e86 Docker \u955c\u50cf\u5728\u79bb\u7ebf\u73af\u5883\u7684\u540c\u6b65\u95ee\u9898&#xff0c;\u4eca\u5929\u6211\u4eec\u6765\u89e3\u51b3\u66f4\u57fa\u7840\u3001\u4e5f\u66f4\u8ba9\u4eba\u5934\u75bc\u7684\u95ee\u9898\u2014\u2014\u64cd\u4f5c\u7cfb\u7edf\u672c\u8eab\u7684\u8f6f\u4ef6\u6e90\u3002<\/p>\n<h3>\u75db\u70b9&#xff1a;\u5f53\u670d\u52a1\u5668\u5931\u53bb\u4e86\u4e92\u8054\u7f51<\/h3>\n<p>\u5bf9\u4e8e\u8eab\u5904\u91d1\u878d\u3001\u653f\u4f01\u6216\u8005\u6d89\u5bc6\u5355\u4f4d\u7684 IT \u8fd0\u7ef4\u548c\u5f00\u53d1\u8005\u6765\u8bf4&#xff0c;\u201c\u5185\u7f51\u201d\u662f\u4e00\u4e2a\u8ba9\u4eba\u53c8\u7231\u53c8\u6068\u7684\u8bcd\u3002\u5b89\u5168\u662f\u5b89\u5168\u4e86&#xff0c;\u4f46\u4fbf\u6377\u6027\u51e0\u4e4e\u4e3a\u96f6\u3002<\/p>\n<p>\u4f60\u662f\u5426\u7ecf\u5386\u8fc7\u8fd9\u79cd\u7edd\u671b\u573a\u666f&#xff1a;<\/p>\n<ul>\n<li>\u65b0\u62ff\u5230\u4e00\u53f0\u5185\u7f51\u670d\u52a1\u5668&#xff0c;\u4e60\u60ef\u6027\u8f93\u5165 yum install vim \u6216 apt install nginx&#xff0c;\u7136\u540e\u770b\u7740\u7ec8\u7aef\u5149\u6807\u65e0\u9650\u95ea\u70c1\u76f4\u5230\u8d85\u65f6\u3002<\/li>\n<li>\u4e3a\u4e86\u5b89\u88c5\u4e00\u4e2a\u8f6f\u4ef6&#xff0c;\u5148\u5728\u80fd\u4e0a\u7f51\u7684\u7535\u8111\u4e0a\u4e0b\u597d .rpm \u6216 .deb \u5305&#xff0c;\u7528 U \u76d8\u62f7\u8fdb\u5185\u7f51\u3002\u7ed3\u679c\u4e00\u5b89\u88c5&#xff0c;\u63d0\u793a\u7f3a\u5c11\u4f9d\u8d56 A&#xff1b;\u62f7\u6765\u4f9d\u8d56 A&#xff0c;\u53c8\u63d0\u793a\u7f3a\u5c11\u4f9d\u8d56 B \u548c C\u2026\u2026\u9677\u5165\u4e86\u65e0\u5c3d\u7684\u201c\u4f9d\u8d56\u5730\u72f1\u201d\u3002<\/li>\n<\/ul>\n<p>\u5728\u7eaf\u5185\u7f51\u73af\u5883\u4e2d&#xff0c;\u6ca1\u6709\u53ef\u7528\u7684\u8f6f\u4ef6\u6e90&#xff0c;\u670d\u52a1\u5668\u5c31\u50cf\u4e00\u5ea7\u5b64\u5c9b\u3002<\/p>\n<p>\u672c\u6587\u5c06\u5e26\u4f60\u6253\u7834\u8fd9\u5ea7\u5b64\u5c9b&#xff0c;\u7528\u6700\u6b63\u89c4\u3001\u6700\u4f01\u4e1a\u7ea7\u7684\u65b9\u5f0f&#xff0c;\u5728\u5185\u7f51\u642d\u5efa\u4e00\u5957\u79c1\u6709\u7684 YUM (CentOS\/RHEL) \u548c APT (Ubuntu\/Debian) \u4ed3\u5e93&#xff0c;\u8ba9\u5185\u7f51\u673a\u5668\u4e5f\u80fd\u4eab\u53d7\u4e1d\u822c\u987a\u6ed1\u7684 install \u4f53\u9a8c\u3002<\/p>\n<hr \/>\n<h3>\u4e00\u3001 \u6838\u5fc3\u539f\u7406&#xff1a;\u642c\u8fd0\u5de5\u4e0e\u5927\u7ba1\u5bb6<\/h3>\n<p>\u6211\u4eec\u4e0d\u80fd\u76f4\u63a5\u628a\u4e92\u8054\u7f51\u63a5\u5165\u5185\u7f51&#xff0c;\u4f46\u6211\u4eec\u53ef\u4ee5\u505a\u4e92\u8054\u7f51\u7684\u201c\u642c\u8fd0\u5de5\u201d\u3002<\/p>\n<p>\u642d\u5efa\u79bb\u7ebf\u4ed3\u5e93\u7684\u672c\u8d28\u5206\u4e3a\u4e09\u6b65&#xff1a;<\/p>\n<li>\u540c\u6b65 (Sync)&#xff1a; \u627e\u4e00\u53f0\u80fd\u901a\u5916\u7f51\u7684\u673a\u5668&#xff08;\u79f0\u4e3a\u201c\u540c\u6b65\u673a\u201d&#xff09;&#xff0c;\u628a\u963f\u91cc\u6e90\u3001\u6e05\u534e\u6e90\u7b49\u4e0a\u6e38\u955c\u50cf\u7ad9\u91cc\u7684\u6240\u6709\u8f6f\u4ef6\u5305\u548c**\u5143\u6570\u636e&#xff08;Metadata&#xff09;**\u7edf\u7edf\u62c9\u53d6\u5230\u672c\u5730\u786c\u76d8\u3002<\/li>\n<li>\u8fc1\u79fb (Transfer)&#xff1a; \u901a\u8fc7\u5408\u89c4\u7684\u65b9\u5f0f&#xff08;\u5982\u79fb\u52a8\u786c\u76d8\u3001\u5149\u95f8\u7b49&#xff09;\u5c06\u8fd9\u4e9b\u6570\u636e\u5bfc\u5165\u5230\u5185\u7f51\u73af\u5883\u3002<\/li>\n<li>\u670d\u52a1 (Serve)&#xff1a; \u5728\u5185\u7f51\u627e\u4e00\u53f0\u670d\u52a1\u5668&#xff08;\u79f0\u4e3a\u201c\u4ed3\u5e93\u670d\u52a1\u5668\u201d&#xff09;&#xff0c;\u5229\u7528 Nginx\/Apache \u5c06\u8fd9\u4e9b\u6570\u636e\u4ee5 HTTP \u7684\u5f62\u5f0f\u53d1\u5e03\u51fa\u53bb&#xff0c;\u4f9b\u5185\u7f51\u5176\u4ed6\u673a\u5668\u4f7f\u7528\u3002<\/li>\n<p><img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/01\/20260128125006-697a05fe52ef2.png\" alt=\"PixPin_2025-11-30_03-23-28\" \/><\/p>\n<h4>\u4e3a\u4ec0\u4e48\u4e0d\u80fd\u53ea\u62f7\u8f6f\u4ef6\u5305&#xff1f;<\/h4>\n<p>\u65b0\u624b\u6700\u5927\u7684\u8bef\u533a\u5c31\u662f\u53ea\u4e0b\u8f7d .rpm \u6587\u4ef6\u3002YUM \u548c APT \u4e4b\u6240\u4ee5\u5f3a\u5927&#xff0c;\u662f\u56e0\u4e3a\u5b83\u4eec\u4f9d\u8d56\u5143\u6570\u636e&#xff08;Repodata\/Packages.gz&#xff09;\u3002\u8fd9\u4e9b\u6587\u4ef6\u8bb0\u5f55\u4e86\u5305\u7684\u7248\u672c\u3001\u4f9d\u8d56\u5173\u7cfb\u3001\u6587\u4ef6\u5217\u8868\u7b49\u4fe1\u606f\u3002\u6ca1\u6709\u5143\u6570\u636e&#xff0c;\u5305\u7ba1\u7406\u5de5\u5177\u5c31\u662f\u4e2a\u778e\u5b50&#xff0c;\u65e0\u6cd5\u81ea\u52a8\u89e3\u51b3\u4f9d\u8d56\u95ee\u9898\u3002<\/p>\n<p>\u6211\u4eec\u8981\u505a\u7684&#xff0c;\u662f\u540c\u6b65\u6574\u4e2a\u4ed3\u5e93\u751f\u6001\u3002<\/p>\n<hr \/>\n<h3>\u4e8c\u3001 \u51c6\u5907\u5de5\u4f5c<\/h3>\n<ul>\n<li>\u540c\u6b65\u673a&#xff08;\u4e92\u8054\u7f51\u4fa7&#xff09;&#xff1a; \u80fd\u591f\u8bbf\u95ee\u516c\u7f51&#xff0c;\u78c1\u76d8\u7a7a\u95f4\u8981\u5927&#xff01;\u540c\u6b65\u4e00\u4e2a\u5b8c\u6574\u7684 CentOS 7 \u7248\u672c\u5927\u7ea6\u9700\u8981 50G&#043;&#xff0c;\u4e00\u4e2a\u5b8c\u6574\u7684 Ubuntu \u7248\u672c\u53ef\u80fd\u9700\u8981 200G&#043;\u3002<\/li>\n<li>\u4ed3\u5e93\u670d\u52a1\u5668&#xff08;\u5185\u7f51\u4fa7&#xff09;&#xff1a; \u5b89\u88c5\u597d Nginx \u6216 Apache&#xff0c;\u7528\u4e8e\u63d0\u4f9b HTTP \u6587\u4ef6\u670d\u52a1\u3002<\/li>\n<li>\u76ee\u6807\u7cfb\u7edf&#xff1a; \u672c\u6587\u4ee5\u6700\u5e38\u89c1\u7684 CentOS 7 \u548c Ubuntu 20.04 LTS \u4e3a\u4f8b\u3002<\/li>\n<\/ul>\n<hr \/>\n<h3>\u4e09\u3001 \u5b9e\u6218&#xff1a;\u642d\u5efa\u79bb\u7ebf YUM \u4ed3\u5e93 (CentOS 7\u4e3a\u4f8b)<\/h3>\n<p>CentOS\/RHEL \u7cfb\u7684\u540c\u6b65\u76f8\u5bf9\u7b80\u5355&#xff0c;\u4e3b\u8981\u4f9d\u9760 yum-utils \u5305\u4e2d\u7684 reposync \u5de5\u5177\u3002<\/p>\n<h4>3.1 \u5728\u540c\u6b65\u673a\u4e0a\u62c9\u53d6\u6570\u636e<\/h4>\n<p>1. \u5b89\u88c5\u5fc5\u8981\u5de5\u5177&#xff1a;<\/p>\n<p><span class=\"token comment\"># \u5b89\u88c5 reposync \u548c createrepo<\/span><br \/>\nyum <span class=\"token function\">install<\/span> -y yum-utils createrepo nginx<\/p>\n<p>2. \u914d\u7f6e\u4f60\u9700\u8981\u540c\u6b65\u7684\u6e90&#xff1a;<\/p>\n<p>\u5047\u8bbe\u6211\u4eec\u9700\u8981\u540c\u6b65\u6700\u57fa\u7840\u7684 base, updates, extras \u4ee5\u53ca\u5e38\u7528\u7684 epel \u6e90\u3002\u786e\u4fdd\u4f60\u7684 \/etc\/yum.repos.d\/ \u4e0b\u5df2\u7ecf\u914d\u7f6e\u597d\u4e86\u8fd9\u4e9b\u6e90\u7684\u56fd\u5185\u955c\u50cf&#xff08;\u5982\u963f\u91cc\u4e91&#xff09;\u3002<\/p>\n<p>3. \u5f00\u59cb\u540c\u6b65&#xff1a;<\/p>\n<p>\u6211\u4eec\u9700\u8981\u521b\u5efa\u4e00\u4e2a\u76ee\u5f55\u6765\u5b58\u653e\u8fd9\u4e9b\u6570\u636e&#xff0c;\u4f8b\u5982 \/data\/centos_repo\u3002<\/p>\n<p><span class=\"token function\">mkdir<\/span> -p \/data\/centos_repo<br \/>\n<span class=\"token comment\"># \u4f7f\u7528 reposync \u540c\u6b65\u6307\u5b9a\u7684 repo id \u5230\u6307\u5b9a\u76ee\u5f55<\/span><br \/>\n<span class=\"token comment\"># -g: \u540c\u6b65 GPG Key&#xff0c;-l: \u5305\u542b yum plugin \u652f\u6301&#xff0c;-d: \u5220\u9664\u672c\u5730\u65e7\u5305&#xff0c;-n: \u53ea\u4e0b\u8f7d\u6700\u65b0\u5305<\/span><br \/>\nreposync -g -l -d -n &#8211;repoid<span class=\"token operator\">&#061;<\/span>base &#8211;newest-only &#8211;download_path<span class=\"token operator\">&#061;<\/span>\/data\/centos_repo\/<br \/>\nreposync -g -l -d -n &#8211;repoid<span class=\"token operator\">&#061;<\/span>updates &#8211;newest-only &#8211;download_path<span class=\"token operator\">&#061;<\/span>\/data\/centos_repo\/<br \/>\nreposync -g -l -d -n &#8211;repoid<span class=\"token operator\">&#061;<\/span>extras &#8211;newest-only &#8211;download_path<span class=\"token operator\">&#061;<\/span>\/data\/centos_repo\/<br \/>\nreposync -g -l -d -n &#8211;repoid<span class=\"token operator\">&#061;<\/span>epel &#8211;newest-only &#8211;download_path<span class=\"token operator\">&#061;<\/span>\/data\/centos_repo\/<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/01\/20260128125008-697a0600548fe.png\" alt=\"PixPin_2025-11-30_02-43-02\" \/><\/p>\n<p>4. \u751f\u6210\u5143\u6570\u636e (\u5173\u952e\u6b65\u9aa4)&#xff1a;<\/p>\n<p>\u4e0b\u8f7d\u5b8c\u6210\u540e&#xff0c;\u76ee\u5f55\u91cc\u53ea\u6709 rpm \u5305&#xff0c;\u8fd8\u4e0d\u80fd\u53eb\u4ed3\u5e93\u3002\u6211\u4eec\u9700\u8981\u7528 createrepo \u751f\u6210\u5143\u6570\u636e\u76ee\u5f55&#xff08;\u5373\u90a3\u4e2a\u8457\u540d\u7684 repodata \u76ee\u5f55&#xff09;\u3002<\/p>\n<p><span class=\"token comment\"># \u5bf9\u6bcf\u4e2a\u4e0b\u8f7d\u597d\u7684\u76ee\u5f55\u6267\u884c createrepo<\/span><br \/>\ncreaterepo \/data\/centos_repo\/base\/<br \/>\ncreaterepo \/data\/centos_repo\/updates\/<br \/>\ncreaterepo \/data\/centos_repo\/extras\/<br \/>\ncreaterepo \/data\/centos_repo\/epel\/<\/p>\n<p>\u6267\u884c\u5b8c\u6bd5\u540e&#xff0c;\u4f60\u4f1a\u53d1\u73b0\u6bcf\u4e2a\u76ee\u5f55\u4e0b\u591a\u4e86\u4e00\u4e2a repodata \u6587\u4ef6\u5939\u3002<\/p>\n<h4>3.2 \u6570\u636e\u8fc1\u79fb\u4e0e\u5185\u7f51\u670d\u52a1<\/h4>\n<p>\u5c06 \/data\/centos_repo \u6574\u4e2a\u6253\u5305\u62f7\u8d1d\u5230\u5185\u7f51\u4ed3\u5e93\u670d\u52a1\u5668\u7684\u76f8\u540c\u4f4d\u7f6e\u3002<\/p>\n<p>\u5728\u5185\u7f51\u670d\u52a1\u5668\u4e0a\u914d\u7f6e Nginx&#xff1a;<\/p>\n<p>server {<br \/>\n    listen       80;<br \/>\n    server_name  yum.intra.example.com; # \u5185\u7f51\u57df\u540d\u6216IP<br \/>\n    root         \/data\/centos_repo;     # \u6307\u5411\u6570\u636e\u6839\u76ee\u5f55<\/p>\n<p>    location \/ {<br \/>\n        autoindex on;             # \u5f00\u542f\u76ee\u5f55\u6d4f\u89c8\u529f\u80fd<br \/>\n        autoindex_exact_size off; # \u663e\u793a\u4eba\u6027\u5316\u7684\u6587\u4ef6\u5927\u5c0f<br \/>\n        autoindex_localtime on;   # \u663e\u793a\u670d\u52a1\u5668\u65f6\u95f4<br \/>\n    }<br \/>\n}<\/p>\n<p>\u542f\u52a8 Nginx \u540e&#xff0c;\u5728\u6d4f\u89c8\u5668\u8bbf\u95ee&#xff0c;\u5e94\u8be5\u80fd\u770b\u5230\u76ee\u5f55\u7ed3\u6784\u5217\u8868\u3002<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/01\/20260128125012-697a0604919ab.png\" alt=\"PixPin_2025-11-30_03-17-31\" \/><\/p>\n<h4>3.3 \u5185\u7f51\u5ba2\u6237\u7aef\u914d\u7f6e<\/h4>\n<p>\u5728\u5185\u7f51\u5176\u4ed6 CentOS \u673a\u5668\u4e0a&#xff0c;\u5907\u4efd\u539f\u6709\u7684 repo \u6587\u4ef6&#xff0c;\u65b0\u5efa\u4e00\u4e2a internal.repo&#xff1a;<\/p>\n<p># \/etc\/yum.repos.d\/internal.repo<br \/>\n[internal-base]<br \/>\nname&#061;Internal Base<br \/>\nbaseurl&#061;http:\/\/yum.intra.example.com\/base\/<br \/>\ngpgcheck&#061;0<br \/>\nenabled&#061;1<\/p>\n<p>[internal-updates]<br \/>\nname&#061;Internal Updates<br \/>\nbaseurl&#061;http:\/\/yum.intra.example.com\/updates\/<br \/>\ngpgcheck&#061;0<br \/>\nenabled&#061;1<\/p>\n<p># extras \u548c epel \u4f9d\u6b64\u7c7b\u63a8&#8230;<\/p>\n<p>\u6700\u540e&#xff0c;\u6e05\u7406\u7f13\u5b58\u5e76\u6d4b\u8bd5&#xff1a;<\/p>\n<p>yum clean all<br \/>\nyum makecache<br \/>\nyum <span class=\"token function\">install<\/span> <span class=\"token function\">vim<\/span>  <span class=\"token comment\"># \u4eab\u53d7\u5185\u7f51\u6781\u901f\u4e0b\u8f7d\u5427&#xff01;<\/span><\/p>\n<hr \/>\n<h3>\u56db\u3001 \u5b9e\u6218&#xff1a;\u642d\u5efa\u79bb\u7ebf APT \u4ed3\u5e93 (Ubuntu 20.04\u4e3a\u4f8b)<\/h3>\n<p>Debian\/Ubuntu \u7cfb\u7684\u4ed3\u5e93\u7ed3\u6784\u6bd4 YUM \u590d\u6742\u5f97\u591a&#xff0c;\u901a\u5e38\u4f7f\u7528 apt-mirror \u5de5\u5177\u6765\u8fdb\u884c\u540c\u6b65\u3002<\/p>\n<p>\u6ce8\u610f&#xff1a;APT \u4ed3\u5e93\u901a\u5e38\u975e\u5e38\u5de8\u5927&#xff0c;\u8bf7\u51c6\u5907\u5145\u8db3\u7684\u78c1\u76d8\u7a7a\u95f4&#xff01;<\/p>\n<h4>4.1 \u5728\u540c\u6b65\u673a\u4e0a\u914d\u7f6e apt-mirror<\/h4>\n<p>1. \u5b89\u88c5\u5de5\u5177&#xff1a;<\/p>\n<p><span class=\"token function\">apt<\/span> update<br \/>\n<span class=\"token function\">apt<\/span> <span class=\"token function\">install<\/span> -y apt-mirror nginx<\/p>\n<p>2. \u4fee\u6539\u914d\u7f6e\u6587\u4ef6&#xff1a;<\/p>\n<p>\u7f16\u8f91 \/etc\/apt\/mirror.list\u3002\u8fd9\u91cc\u5b9a\u4e49\u4e86\u6211\u4eec\u8981\u955c\u50cf\u54ea\u4e9b\u6e90\u3001\u54ea\u4e9b\u7248\u672c\u4ee5\u53ca\u67b6\u6784\u3002<\/p>\n<p><span class=\"token comment\">############# config ##################<\/span><br \/>\n<span class=\"token comment\"># \u5b9a\u4e49\u57fa\u7840\u76ee\u5f55<\/span><br \/>\n<span class=\"token builtin class-name\">set<\/span> base_path    \/data\/apt_mirror<br \/>\n<span class=\"token comment\"># \u5b9a\u4e49\u955c\u50cf\u5b58\u50a8\u4f4d\u7f6e<\/span><br \/>\n<span class=\"token builtin class-name\">set<\/span> mirror_path  <span class=\"token variable\">$base_path<\/span>\/mirror<br \/>\n<span class=\"token comment\"># \u5b9a\u4e49\u4e34\u65f6\u4e0b\u8f7d\u76ee\u5f55<\/span><br \/>\n<span class=\"token builtin class-name\">set<\/span> skel_path    <span class=\"token variable\">$base_path<\/span>\/skel<br \/>\n<span class=\"token builtin class-name\">set<\/span> var_path     <span class=\"token variable\">$base_path<\/span>\/var<br \/>\n<span class=\"token builtin class-name\">set<\/span> cleanscript <span class=\"token variable\">$var_path<\/span>\/clean.sh<br \/>\n<span class=\"token comment\"># \u67b6\u6784&#xff0c;\u901a\u5e38\u53ea\u9700\u8981 amd64<\/span><br \/>\n<span class=\"token builtin class-name\">set<\/span> defaultarch  amd64<br \/>\n<span class=\"token comment\"># \u8fdb\u7a0b\u6570<\/span><br \/>\n<span class=\"token builtin class-name\">set<\/span> nthreads     <span class=\"token number\">20<\/span><br \/>\n<span class=\"token builtin class-name\">set<\/span> _tilde <span class=\"token number\">0<\/span><br \/>\n<span class=\"token comment\">############# end config ##############<\/span><\/p>\n<p><span class=\"token comment\"># \u66ff\u6362\u4e3a\u4f60\u60f3\u8981\u540c\u6b65\u7684\u4e0a\u6e38\u6e90&#xff08;\u63a8\u8350\u4f7f\u7528\u56fd\u5185\u6e90\u52a0\u901f\u4e0b\u8f7d&#xff09;<\/span><br \/>\n<span class=\"token comment\"># Ubuntu 20.04 \u4ee3\u53f7 focal<\/span><br \/>\ndeb http:\/\/mirrors.aliyun.com\/ubuntu\/ focal main restricted universe multiverse<br \/>\ndeb http:\/\/mirrors.aliyun.com\/ubuntu\/ focal-security main restricted universe multiverse<br \/>\ndeb http:\/\/mirrors.aliyun.com\/ubuntu\/ focal-updates main restricted universe multiverse<br \/>\n<span class=\"token comment\"># deb-src \u5f00\u5934\u7684\u662f\u6e90\u7801\u5305&#xff0c;\u5982\u679c\u4e0d\u9700\u8981\u53ef\u4ee5\u6ce8\u91ca\u6389\u4ee5\u8282\u7701\u5927\u91cf\u7a7a\u95f4<\/span><br \/>\n<span class=\"token comment\"># deb-src http:\/\/mirrors.aliyun.com\/ubuntu\/ focal main &#8230;<\/span><\/p>\n<p>clean http:\/\/mirrors.aliyun.com\/ubuntu<\/p>\n<p>3. \u5f00\u59cb\u540c\u6b65 (\u6f2b\u957f\u7684\u7b49\u5f85)&#xff1a;<\/p>\n<p>\u5207\u6362\u5230 apt-mirror \u7528\u6237\u6267\u884c\u540c\u6b65&#xff08;\u6216\u76f4\u63a5\u7528 root&#xff0c;\u6ce8\u610f\u6743\u9650&#xff09;&#xff1a;<\/p>\n<p>apt-mirror<\/p>\n<p>\u8fd9\u4e2a\u8fc7\u7a0b\u53ef\u80fd\u4f1a\u6301\u7eed\u51e0\u4e2a\u5c0f\u65f6\u751a\u81f3\u51e0\u5929&#xff0c;\u53d6\u51b3\u4e8e\u4f60\u7684\u7f51\u901f\u548c\u540c\u6b65\u7684\u6570\u636e\u91cf\u3002<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/01\/20260128125014-697a0606615d8.png\" alt=\"PixPin_2025-11-30_03-25-27\" \/><\/p>\n<h4>4.2 \u6570\u636e\u8fc1\u79fb\u4e0e\u5185\u7f51\u670d\u52a1<\/h4>\n<p>\u540c\u6b65\u5b8c\u6210\u540e&#xff0c;\u6570\u636e\u901a\u5e38\u4f4d\u4e8e \/data\/apt_mirror\/mirror\/mirrors.aliyun.com\/ubuntu\/ \u76ee\u5f55\u4e0b\u3002\u5c06\u8fd9\u4e2a ubuntu \u76ee\u5f55\u5b8c\u6574\u8fc1\u79fb\u5230\u5185\u7f51\u670d\u52a1\u5668\u7684 \/data\/apt_repo\/ \u4e0b\u3002<\/p>\n<p>\u5185\u7f51 Nginx \u914d\u7f6e\u4e0e YUM \u7c7b\u4f3c&#xff0c;\u6307\u5411 \/data\/apt_repo\/\u3002<\/p>\n<h4>4.3 \u5185\u7f51\u5ba2\u6237\u7aef\u914d\u7f6e<\/h4>\n<p>\u5728\u5185\u7f51 Ubuntu \u673a\u5668\u4e0a&#xff0c;\u4fee\u6539 \/etc\/apt\/sources.list&#xff1a;<\/p>\n<p><span class=\"token comment\"># \u6ce8\u91ca\u6389\u539f\u6765\u7684\u6e90&#xff0c;\u6dfb\u52a0\u5185\u7f51\u6e90<\/span><br \/>\n<span class=\"token comment\"># \u5047\u8bbe\u5185\u7f51\u4ed3\u5e93\u5730\u5740\u662f http:\/\/apt.intra.example.com\/ubuntu\/<\/span><br \/>\ndeb <span class=\"token punctuation\">[<\/span>trusted<span class=\"token operator\">&#061;<\/span>yes<span class=\"token punctuation\">]<\/span> http:\/\/apt.intra.example.com\/ubuntu\/ focal main restricted universe multiverse<br \/>\ndeb <span class=\"token punctuation\">[<\/span>trusted<span class=\"token operator\">&#061;<\/span>yes<span class=\"token punctuation\">]<\/span> http:\/\/apt.intra.example.com\/ubuntu\/ focal-security main restricted universe multiverse<br \/>\ndeb <span class=\"token punctuation\">[<\/span>trusted<span class=\"token operator\">&#061;<\/span>yes<span class=\"token punctuation\">]<\/span> http:\/\/apt.intra.example.com\/ubuntu\/ focal-updates main restricted universe multiverse<\/p>\n<p>\u6ce8\u610f&#xff1a; \u7531\u4e8e\u6211\u4eec\u662f\u79bb\u7ebf\u955c\u50cf&#xff0c;\u901a\u5e38\u6ca1\u6709\u540c\u6b65\u5b98\u65b9\u7684 GPG \u7b7e\u540d\u5bc6\u94a5&#xff0c;\u6216\u8005\u5185\u7f51\u673a\u5668\u65e0\u6cd5\u9a8c\u8bc1\u7b7e\u540d\u3002\u7b80\u5355\u7c97\u66b4\u7684\u65b9\u6cd5\u662f\u5728\u6e90\u5730\u5740\u524d\u52a0\u4e0a [trusted&#061;yes] \u544a\u8bc9 APT \u4fe1\u4efb\u6b64\u6e90\u3002<\/p>\n<p>\u6700\u540e\u6d4b\u8bd5&#xff1a;<\/p>\n<p><span class=\"token function\">apt<\/span> update<br \/>\n<span class=\"token function\">apt<\/span> <span class=\"token function\">install<\/span> nginx<\/p>\n<hr \/>\n<h3>\u4e94\u3001 \u603b\u7ed3\u4e0e\u8fdb\u9636<\/h3>\n<p>\u642d\u5efa\u79bb\u7ebf\u8f6f\u4ef6\u6e90\u662f\u4f01\u4e1a\u7ea7\u5185\u7f51\u73af\u5883\u7684\u57fa\u7840\u8bbe\u65bd\u5efa\u8bbe\u3002\u867d\u7136\u521d\u671f\u642d\u5efa\u6bd4\u8f83\u7e41\u7410&#xff0c;\u6570\u636e\u642c\u8fd0\u91cf\u5927&#xff0c;\u4f46\u4e00\u65e6\u5efa\u6210&#xff0c;\u5c06\u6781\u5927\u63d0\u5347\u6574\u4e2a\u56e2\u961f\u7684\u8fd0\u7ef4\u6548\u7387\u548c\u5f00\u53d1\u4f53\u9a8c\u3002<\/p>\n<p>\u8fdb\u9636\u601d\u8003&#xff1a;<\/p>\n<ul>\n<li>\u589e\u91cf\u66f4\u65b0&#xff1a; \u7b2c\u4e00\u6b21\u5168\u91cf\u540c\u6b65\u540e&#xff0c;\u5982\u4f55\u5b9a\u671f\u8fdb\u884c\u589e\u91cf\u540c\u6b65&#xff1f;&#xff08;Review reposync \u7684\u53c2\u6570\u548c apt-mirror \u7684\u673a\u5236&#xff09;\u3002<\/li>\n<li>\u7248\u672c\u51bb\u7ed3&#xff1a; \u5bf9\u4e8e\u8ffd\u6c42\u6781\u5ea6\u7a33\u5b9a\u7684\u751f\u4ea7\u73af\u5883&#xff0c;\u5982\u4f55\u5229\u7528\u79bb\u7ebf\u6e90\u5b9e\u73b0\u8f6f\u4ef6\u7248\u672c\u7684\u51bb\u7ed3&#xff0c;\u907f\u514d\u610f\u5916\u5347\u7ea7\u5e26\u6765\u7684 Bug&#xff1f;<\/li>\n<li>CI\/CD \u96c6\u6210&#xff1a; \u5982\u4f55\u5c06\u81ea\u7814\u7684\u8f6f\u4ef6\u6253\u5305\u6210 RPM\/DEB&#xff0c;\u53d1\u5e03\u5230\u8fd9\u4e2a\u79c1\u6709\u4ed3\u5e93\u4e2d&#xff0c;\u4f9b\u81ea\u52a8\u5316\u90e8\u7f72\u4f7f\u7528&#xff1f;<\/li>\n<\/ul>\n<p>\u638c\u63e1\u4e86\u8fd9\u4e9b&#xff0c;\u4f60\u624d\u7b97\u771f\u6b63\u638c\u63a7\u4e86\u5185\u7f51\u670d\u52a1\u5668\u7684\u201c\u751f\u6740\u5927\u6743\u201d\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u5185\u7f51\u670d\u52a1\u5668\u7684\u201c\u6c42\u751f\u4e4b\u8def\u201d&#xff1a;\u624b\u628a\u624b\u642d\u5efa\u4f01\u4e1a\u7ea7\u79bb\u7ebf YUM\/APT \u4ed3\u5e93&#xff08;\u544a\u522b U \u76d8\u62f7\u5305&#xff09;<br \/>\n\u4e0a\u4e00\u7bc7\u6587\u7ae0\u6211\u4eec\u89e3\u51b3\u4e86 Docker \u955c\u50cf\u5728\u79bb\u7ebf\u73af\u5883\u7684\u540c\u6b65\u95ee\u9898&#xff0c;\u4eca\u5929\u6211\u4eec\u6765\u89e3\u51b3\u66f4\u57fa\u7840\u3001\u4e5f\u66f4\u8ba9\u4eba\u5934\u75bc\u7684\u95ee\u9898\u2014\u2014\u64cd\u4f5c\u7cfb\u7edf\u672c\u8eab\u7684\u8f6f\u4ef6\u6e90\u3002<br \/>\n\u75db\u70b9&#xff1a;\u5f53\u670d\u52a1\u5668\u5931\u53bb\u4e86\u4e92\u8054\u7f51<br \/>\n\u5bf9\u4e8e\u8eab\u5904\u91d1\u878d\u3001\u653f\u4f01\u6216\u8005\u6d89\u5bc6\u5355\u4f4d\u7684 IT \u8fd0\u7ef4\u548c\u5f00\u53d1\u8005\u6765\u8bf4&#xff0c;\u201c\u5185\u7f51\u201d\u662f\u4e00\u4e2a\u8ba9\u4eba\u53c8\u7231\u53c8\u6068\u7684\u8bcd\u3002\u5b89\u5168\u662f\u5b89\u5168\u4e86&#xff0c;\u4f46\u4fbf\u6377\u6027\u51e0\u4e4e\u4e3a\u96f6\u3002<br \/>\n\u4f60\u662f\u5426\u7ecf\u5386<\/p>\n","protected":false},"author":2,"featured_media":67495,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[43,44],"topic":[],"class_list":["post-67499","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-server","tag-43","tag-44"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v20.3 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>\u5185\u7f51\u670d\u52a1\u5668\u7684\u201c\u6c42\u751f\u4e4b\u8def\u201d\uff1a\u624b\u628a\u624b\u642d\u5efa\u4f01\u4e1a\u7ea7\u79bb\u7ebf YUM\/APT \u4ed3\u5e93\uff08\u544a\u522b U \u76d8\u62f7\u5305\uff09 - \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\/67499.html\" \/>\n<meta property=\"og:locale\" content=\"zh_CN\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"\u5185\u7f51\u670d\u52a1\u5668\u7684\u201c\u6c42\u751f\u4e4b\u8def\u201d\uff1a\u624b\u628a\u624b\u642d\u5efa\u4f01\u4e1a\u7ea7\u79bb\u7ebf YUM\/APT \u4ed3\u5e93\uff08\u544a\u522b U \u76d8\u62f7\u5305\uff09 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"og:description\" content=\"\u5185\u7f51\u670d\u52a1\u5668\u7684\u201c\u6c42\u751f\u4e4b\u8def\u201d&#xff1a;\u624b\u628a\u624b\u642d\u5efa\u4f01\u4e1a\u7ea7\u79bb\u7ebf YUM\/APT \u4ed3\u5e93&#xff08;\u544a\u522b U \u76d8\u62f7\u5305&#xff09; \u4e0a\u4e00\u7bc7\u6587\u7ae0\u6211\u4eec\u89e3\u51b3\u4e86 Docker \u955c\u50cf\u5728\u79bb\u7ebf\u73af\u5883\u7684\u540c\u6b65\u95ee\u9898&#xff0c;\u4eca\u5929\u6211\u4eec\u6765\u89e3\u51b3\u66f4\u57fa\u7840\u3001\u4e5f\u66f4\u8ba9\u4eba\u5934\u75bc\u7684\u95ee\u9898\u2014\u2014\u64cd\u4f5c\u7cfb\u7edf\u672c\u8eab\u7684\u8f6f\u4ef6\u6e90\u3002 \u75db\u70b9&#xff1a;\u5f53\u670d\u52a1\u5668\u5931\u53bb\u4e86\u4e92\u8054\u7f51 \u5bf9\u4e8e\u8eab\u5904\u91d1\u878d\u3001\u653f\u4f01\u6216\u8005\u6d89\u5bc6\u5355\u4f4d\u7684 IT \u8fd0\u7ef4\u548c\u5f00\u53d1\u8005\u6765\u8bf4&#xff0c;\u201c\u5185\u7f51\u201d\u662f\u4e00\u4e2a\u8ba9\u4eba\u53c8\u7231\u53c8\u6068\u7684\u8bcd\u3002\u5b89\u5168\u662f\u5b89\u5168\u4e86&#xff0c;\u4f46\u4fbf\u6377\u6027\u51e0\u4e4e\u4e3a\u96f6\u3002 \u4f60\u662f\u5426\u7ecf\u5386\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.wsisp.com\/helps\/67499.html\" \/>\n<meta property=\"og:site_name\" content=\"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"article:published_time\" content=\"2026-01-28T12:50:18+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/01\/20260128125006-697a05fe52ef2.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=\"3 \u5206\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/67499.html\",\"url\":\"https:\/\/www.wsisp.com\/helps\/67499.html\",\"name\":\"\u5185\u7f51\u670d\u52a1\u5668\u7684\u201c\u6c42\u751f\u4e4b\u8def\u201d\uff1a\u624b\u628a\u624b\u642d\u5efa\u4f01\u4e1a\u7ea7\u79bb\u7ebf YUM\/APT \u4ed3\u5e93\uff08\u544a\u522b U \u76d8\u62f7\u5305\uff09 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\",\"isPartOf\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#website\"},\"datePublished\":\"2026-01-28T12:50:18+00:00\",\"dateModified\":\"2026-01-28T12:50:18+00:00\",\"author\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41\"},\"breadcrumb\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/67499.html#breadcrumb\"},\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.wsisp.com\/helps\/67499.html\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/67499.html#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u9996\u9875\",\"item\":\"https:\/\/www.wsisp.com\/helps\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"\u5185\u7f51\u670d\u52a1\u5668\u7684\u201c\u6c42\u751f\u4e4b\u8def\u201d\uff1a\u624b\u628a\u624b\u642d\u5efa\u4f01\u4e1a\u7ea7\u79bb\u7ebf YUM\/APT \u4ed3\u5e93\uff08\u544a\u522b U \u76d8\u62f7\u5305\uff09\"}]},{\"@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":"\u5185\u7f51\u670d\u52a1\u5668\u7684\u201c\u6c42\u751f\u4e4b\u8def\u201d\uff1a\u624b\u628a\u624b\u642d\u5efa\u4f01\u4e1a\u7ea7\u79bb\u7ebf YUM\/APT \u4ed3\u5e93\uff08\u544a\u522b U \u76d8\u62f7\u5305\uff09 - \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\/67499.html","og_locale":"zh_CN","og_type":"article","og_title":"\u5185\u7f51\u670d\u52a1\u5668\u7684\u201c\u6c42\u751f\u4e4b\u8def\u201d\uff1a\u624b\u628a\u624b\u642d\u5efa\u4f01\u4e1a\u7ea7\u79bb\u7ebf YUM\/APT \u4ed3\u5e93\uff08\u544a\u522b U \u76d8\u62f7\u5305\uff09 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","og_description":"\u5185\u7f51\u670d\u52a1\u5668\u7684\u201c\u6c42\u751f\u4e4b\u8def\u201d&#xff1a;\u624b\u628a\u624b\u642d\u5efa\u4f01\u4e1a\u7ea7\u79bb\u7ebf YUM\/APT \u4ed3\u5e93&#xff08;\u544a\u522b U \u76d8\u62f7\u5305&#xff09; \u4e0a\u4e00\u7bc7\u6587\u7ae0\u6211\u4eec\u89e3\u51b3\u4e86 Docker \u955c\u50cf\u5728\u79bb\u7ebf\u73af\u5883\u7684\u540c\u6b65\u95ee\u9898&#xff0c;\u4eca\u5929\u6211\u4eec\u6765\u89e3\u51b3\u66f4\u57fa\u7840\u3001\u4e5f\u66f4\u8ba9\u4eba\u5934\u75bc\u7684\u95ee\u9898\u2014\u2014\u64cd\u4f5c\u7cfb\u7edf\u672c\u8eab\u7684\u8f6f\u4ef6\u6e90\u3002 \u75db\u70b9&#xff1a;\u5f53\u670d\u52a1\u5668\u5931\u53bb\u4e86\u4e92\u8054\u7f51 \u5bf9\u4e8e\u8eab\u5904\u91d1\u878d\u3001\u653f\u4f01\u6216\u8005\u6d89\u5bc6\u5355\u4f4d\u7684 IT \u8fd0\u7ef4\u548c\u5f00\u53d1\u8005\u6765\u8bf4&#xff0c;\u201c\u5185\u7f51\u201d\u662f\u4e00\u4e2a\u8ba9\u4eba\u53c8\u7231\u53c8\u6068\u7684\u8bcd\u3002\u5b89\u5168\u662f\u5b89\u5168\u4e86&#xff0c;\u4f46\u4fbf\u6377\u6027\u51e0\u4e4e\u4e3a\u96f6\u3002 \u4f60\u662f\u5426\u7ecf\u5386","og_url":"https:\/\/www.wsisp.com\/helps\/67499.html","og_site_name":"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","article_published_time":"2026-01-28T12:50:18+00:00","og_image":[{"url":"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/01\/20260128125006-697a05fe52ef2.png"}],"author":"admin","twitter_card":"summary_large_image","twitter_misc":{"\u4f5c\u8005":"admin","\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4":"3 \u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.wsisp.com\/helps\/67499.html","url":"https:\/\/www.wsisp.com\/helps\/67499.html","name":"\u5185\u7f51\u670d\u52a1\u5668\u7684\u201c\u6c42\u751f\u4e4b\u8def\u201d\uff1a\u624b\u628a\u624b\u642d\u5efa\u4f01\u4e1a\u7ea7\u79bb\u7ebf YUM\/APT \u4ed3\u5e93\uff08\u544a\u522b U \u76d8\u62f7\u5305\uff09 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","isPartOf":{"@id":"https:\/\/www.wsisp.com\/helps\/#website"},"datePublished":"2026-01-28T12:50:18+00:00","dateModified":"2026-01-28T12:50:18+00:00","author":{"@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41"},"breadcrumb":{"@id":"https:\/\/www.wsisp.com\/helps\/67499.html#breadcrumb"},"inLanguage":"zh-Hans","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.wsisp.com\/helps\/67499.html"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.wsisp.com\/helps\/67499.html#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9875","item":"https:\/\/www.wsisp.com\/helps"},{"@type":"ListItem","position":2,"name":"\u5185\u7f51\u670d\u52a1\u5668\u7684\u201c\u6c42\u751f\u4e4b\u8def\u201d\uff1a\u624b\u628a\u624b\u642d\u5efa\u4f01\u4e1a\u7ea7\u79bb\u7ebf YUM\/APT \u4ed3\u5e93\uff08\u544a\u522b U \u76d8\u62f7\u5305\uff09"}]},{"@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\/67499","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=67499"}],"version-history":[{"count":0,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts\/67499\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/media\/67495"}],"wp:attachment":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/media?parent=67499"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/categories?post=67499"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/tags?post=67499"},{"taxonomy":"topic","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/topic?post=67499"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}