{"id":34890,"date":"2024-08-16T16:16:04","date_gmt":"2024-08-16T09:16:04","guid":{"rendered":"http:\/\/jupitek.maudemo.vip\/index.php\/2024\/08\/16\/package-mirrors\/"},"modified":"2024-08-16T16:16:04","modified_gmt":"2024-08-16T09:16:04","slug":"package-mirrors","status":"publish","type":"post","link":"https:\/\/jupitek.maudemo.vip\/index.php\/2024\/08\/16\/package-mirrors\/","title":{"rendered":"Package mirrors"},"content":{"rendered":"<p>hi c\u00e0i \u0111\u1eb7t ho\u1eb7c c\u1eadp nh\u1eadt c\u00e1c g\u00f3i b\u1eb1ng tr\u00ecnh qu\u1ea3n l\u00fd g\u00f3i, kho l\u01b0u tr\u1eef g\u00f3i \u0111\u01b0\u1ee3c s\u1eed d\u1ee5ng \u0111\u1ec3 l\u1ea5y danh s\u00e1ch t\u1ea5t c\u1ea3 c\u00e1c g\u00f3i c\u00f3 s\u1eb5n v\u00e0 t\u1ea3i xu\u1ed1ng c\u00e1c g\u00f3i \u0111\u00f3. G\u01b0\u01a1ng g\u00f3i l\u00e0 b\u1ea3n sao c\u1ee7a c\u00e1c kho g\u00f3i n\u00e0y. Akamai cung c\u1ea5p c\u00e1c g\u00f3i nh\u00e2n b\u1ea3n c\u00f4ng khai cho Ubuntu, Debian v\u00e0 CentOS. V\u00ec m\u00e1y nh\u00e2n b\u1ea3n c\u1ee7a ch\u00fang t\u00f4i \u0111\u01b0\u1ee3c l\u01b0u tr\u1eef \u1edf m\u1ecdi trung t\u00e2m d\u1eef li\u1ec7u n\u00ean ph\u1ea3n h\u1ed3i v\u00e0 t\u1ea3i xu\u1ed1ng th\u01b0\u1eddng nhanh h\u01a1n nhi\u1ec1u so v\u1edbi vi\u1ec7c s\u1eed d\u1ee5ng c\u00e1c m\u00e1y nh\u00e2n b\u1ea3n c\u00f4ng khai kh\u00e1c.<\/p>\n<h2 id=\"h-cai-d\u1eb7t-goi-mirrors\">C\u00e0i \u0111\u1eb7t g\u00f3i mirrors<\/h2>\n<p>\u0110\u1ec3 c\u00f3 hi\u1ec7u su\u1ea5t t\u1ed1t nh\u1ea5t, b\u1ea1n s\u1ebd mu\u1ed1n s\u1eed d\u1ee5ng m\u00e1y nh\u00e2n b\u1ea3n trong c\u00f9ng trung t\u00e2m d\u1eef li\u1ec7u v\u1edbi Phi\u00ean b\u1ea3n \u0111i\u1ec7n to\u00e1n c\u1ee7a m\u00ecnh. Khi s\u1eed d\u1ee5ng tr\u00ecnh ph\u00e2n gi\u1ea3i DNS c\u1ee7a ch\u00fang t\u00f4i, mirror.linode.com s\u1ebd ph\u00e2n gi\u1ea3i t\u1edbi m\u00e1y nh\u00e2n b\u1ea3n trong c\u00f9ng m\u1ed9t trung t\u00e2m d\u1eef li\u1ec7u. \u0110\u1ed1i v\u1edbi c\u00e1c truy v\u1ea5n c\u00f4ng khai, Mirror.linode.com s\u1ebd tr\u1ea3 v\u1ec1 m\u1ed9t l\u01b0\u1ee3t c\u00e1c \u0111\u1ecba \u0111i\u1ec3m \u1edf Hoa K\u1ef3. H\u01b0\u1edbng d\u1eabn c\u00e0i \u0111\u1eb7t v\u1ecb tr\u00ed g\u01b0\u01a1ng g\u00f3i \u0111\u01b0\u1ee3c cung c\u1ea5p trong c\u00e1c ph\u1ea7n ph\u1ee5 sau.<\/p>\n<p><strong>C\u00e0i \u0111\u1eb7t h\u1ec7 th\u1ed1ng Ubuntu<\/strong><\/p>\n<p>\u0110\u1ed1i v\u1edbi h\u1ec7 th\u1ed1ng Ubuntu, h\u00e3y l\u00e0m theo h\u01b0\u1edbng d\u1eabn b\u00ean d\u01b0\u1edbi:<\/p>\n<ol>\n<li>Ch\u1ec9nh s\u1eeda&nbsp;<code>sources.list<\/code>&nbsp;b\u1eb1ng l\u1ec7nh: <code>sudo nano \/etc\/apt\/sources.list<\/code><\/li>\n<li>thay th\u1ebf d\u00f2ng ch\u1ee9a \u0111\u1ecba ch\u1ec9&nbsp;http:\/\/us.archive.ubuntu.com\/ubuntu\/&nbsp;b\u1eb1ng \u0111\u1ecba ch\u1ec9 m\u1edbi: <code>http:\/\/mirrors.linode.com\/ubuntu\/<\/code><\/li>\n<li>Kh\u00f4ng s\u1eeda \u0111\u1ed5i c\u00e1c d\u00f2ng ch\u1ee9a \u0111\u1ecba ch\u1ec9&nbsp;http:\/\/security.ubuntu.com\/ubuntu\/. Nh\u1eefng d\u00f2ng n\u00e0y ch\u1ee9a c\u00e1c b\u1ea3n c\u1eadp nh\u1eadt b\u1ea3o m\u1eadt cho c\u00e1c g\u00f3i.<\/li>\n<li>L\u01b0u v\u00e0 tho\u00e1t&nbsp;<code>sources.list<\/code>&nbsp;file.<\/li>\n<\/ol>\n<p>\u0110\u1ed1i v\u1edbi h\u1ec7 th\u1ed1ng Debian, h\u00e3y l\u00e0m theo h\u01b0\u1edbng d\u1eabn b\u00ean d\u01b0\u1edbi:<\/p>\n<h2>Debian<a href=\"https:\/\/techdocs.akamai.com\/cloud-computing\/docs\/package-mirrors#debian-system-settings\"><\/a><\/h2>\n<ol>\n<li>S\u1eeda&nbsp;<code>sources.list<\/code>&nbsp;b\u1eb1ng l\u1ec7nh:<code>sudo nano \/etc\/apt\/sources.list<\/code><\/li>\n<li>Thay th\u1ebf \u0111\u01b0\u1eddng d\u1eabn sau&nbsp;<a href=\"http:\/\/ftp.us.debian.org\/debian\/\" target=\"_blank\" rel=\"noreferrer noopener\">http:\/\/ftp.us.debian.org\/debian\/<\/a>&nbsp;b\u1eb1ng \u0111\u01b0\u1eddng d\u1eabn: <code>http:\/\/mirrors.linode.com\/debian\/<\/code><\/li>\n<li>Kh\u00f4ng s\u1eeda \u0111\u1ed5i d\u00f2ng ch\u1ee9a \u0111\u1ecba ch\u1ec9 <a href=\"http:\/\/security.debian.org\/\" target=\"_blank\" rel=\"noreferrer noopener\">http:\/\/security.debian.org\/<\/a>.Nh\u1eefng d\u00f2ng n\u00e0y ch\u1ee9a c\u00e1c b\u1ea3n c\u1eadp nh\u1eadt b\u1ea3o m\u1eadt cho c\u00e1c g\u00f3i.<\/li>\n<li>L\u01b0u v\u00e0 tho\u00e1t&nbsp;<code>sources.list<\/code>&nbsp;file.<\/li>\n<\/ol>\n<h2>Centos<a href=\"https:\/\/techdocs.akamai.com\/cloud-computing\/docs\/package-mirrors#centos-system-settings\"><\/a><\/h2>\n<p>For a CentOS system follow the instructions below:<\/p>\n<ol>\n<li>By default,&nbsp;<code>yum<\/code>&nbsp;will try using fastest mirror available. \u0110i\u1ec1u n\u00e0y c\u1ea7n ph\u1ea3i \u0111\u01b0\u1ee3c v\u00f4 hi\u1ec7u h\u00f3a \u0111\u1ec3 s\u1eed d\u1ee5ng mirror . s\u1eeda file&nbsp;<code>fastestmirror.conf<\/code>&nbsp;b\u1eb1ng l\u1ec7nh:<code>sudo nano \/etc\/yum\/pluginconf.d\/fastestmirror.conf<\/code><\/li>\n<li>Thay \u0111\u1ed5i&nbsp;<code>enabled=<\/code>&nbsp;variable th\u00e0nh <strong>0<\/strong>:\/etc\/yum\/pluginconf.d\/fastestmirror.conf<code>... enabled=0 ...<\/code><\/li>\n<li>L\u01b0u v\u00e0 tho\u00e1t&nbsp;<code>fastestmirror.conf<\/code>&nbsp;file.<\/li>\n<li>S\u1eeda &nbsp;<code>CentOS-Base.repo<\/code>&nbsp;file b\u1eb1ng l\u1ec7nh: <code>sudo nano \/etc\/yum.repos.d\/CentOS-Base.repo<\/code><\/li>\n<li>Nh\u1eadn x\u00e9t t\u1eebng d\u00f2ng&nbsp;danh s\u00e1ch ph\u1ea3n chi\u1ebfu b\u1eb1ng c\u00e1ch th\u00eam d\u1ea5u # tr\u01b0\u1edbc m\u1ed7i d\u00f2ng.<\/li>\n<li>B\u1ecf ghi ch\u00fa m\u1ed7i d\u00f2ng baseurl b\u1eb1ng c\u00e1ch x\u00f3a d\u1ea5u # tr\u01b0\u1edbc m\u1ed7i d\u00f2ng.<\/li>\n<li>Es\u1eeda l\u1ea1i t\u1ea5t c\u1ea3 c\u00e1c d\u00f2ng baseurl c\u00f3 ch\u1ee9a \u0111\u1ecba ch\u1ec9&nbsp;<code>http:\/\/mirror.centos.org\/centos\/$releasever\/os\/$basearch\/<\/code>&nbsp;to reflect the new \u0111\u1ecba \u0111\u1ecba ch\u1ec9:<code>http:\/\/mirrors.linode.com\/centos\/$releasever\/os\/$basearch\/<\/code><\/li>\n<li>L\u01b0u v\u00e0 tho\u00e1t: <code>CentOS-Base.repo<\/code>&nbsp;file.<\/li>\n<\/ol>\n<p>Ngu\u1ed3n: https:\/\/techdocs.akamai.com\/cloud-computing\/docs\/package-mirrors<\/p>\n","protected":false},"excerpt":{"rendered":"<p>hi c\u00e0i \u0111\u1eb7t ho\u1eb7c c\u1eadp nh\u1eadt c\u00e1c g\u00f3i b\u1eb1ng tr\u00ecnh qu\u1ea3n l\u00fd g\u00f3i, kho l\u01b0u tr\u1eef g\u00f3i \u0111\u01b0\u1ee3c s\u1eed d\u1ee5ng \u0111\u1ec3 l\u1ea5y danh s\u00e1ch t\u1ea5t c\u1ea3 c\u00e1c g\u00f3i c\u00f3 s\u1eb5n v\u00e0 t\u1ea3i xu\u1ed1ng c\u00e1c g\u00f3i \u0111\u00f3. G\u01b0\u01a1ng g\u00f3i l\u00e0 b\u1ea3n sao c\u1ee7a c\u00e1c kho g\u00f3i n\u00e0y. Akamai cung c\u1ea5p c\u00e1c g\u00f3i nh\u00e2n b\u1ea3n c\u00f4ng khai<\/p>\n","protected":false},"author":1,"featured_media":35554,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[102],"tags":[],"class_list":["post-34890","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-choose-a-linux-distribute"],"_links":{"self":[{"href":"https:\/\/jupitek.maudemo.vip\/index.php\/wp-json\/wp\/v2\/posts\/34890","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/jupitek.maudemo.vip\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/jupitek.maudemo.vip\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/jupitek.maudemo.vip\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/jupitek.maudemo.vip\/index.php\/wp-json\/wp\/v2\/comments?post=34890"}],"version-history":[{"count":0,"href":"https:\/\/jupitek.maudemo.vip\/index.php\/wp-json\/wp\/v2\/posts\/34890\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/jupitek.maudemo.vip\/index.php\/wp-json\/wp\/v2\/media\/35554"}],"wp:attachment":[{"href":"https:\/\/jupitek.maudemo.vip\/index.php\/wp-json\/wp\/v2\/media?parent=34890"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/jupitek.maudemo.vip\/index.php\/wp-json\/wp\/v2\/categories?post=34890"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/jupitek.maudemo.vip\/index.php\/wp-json\/wp\/v2\/tags?post=34890"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}