{"id":629,"date":"2025-12-11T09:53:21","date_gmt":"2025-12-11T01:53:21","guid":{"rendered":"https:\/\/book.yuekegu.com\/?p=629"},"modified":"2025-12-11T09:53:22","modified_gmt":"2025-12-11T01:53:22","slug":"github-%e9%85%8d%e7%bd%aehost-%e7%9b%b4%e6%8e%a5%e8%a3%b8%e8%bf%9e","status":"publish","type":"post","link":"https:\/\/book.yuekegu.com\/index.php\/2025\/12\/11\/github-%e9%85%8d%e7%bd%aehost-%e7%9b%b4%e6%8e%a5%e8%a3%b8%e8%bf%9e\/","title":{"rendered":"GitHub \u914d\u7f6ehost \u76f4\u63a5\u88f8\u8fde"},"content":{"rendered":"\n<h2 class=\"wp-block-heading\" id=\"wznav_0\"><strong>\u5b9e\u65f6\u66f4\u65b0\u7684github hosts\u5730\u5740<\/strong><\/h2>\n\n\n\n<p><strong><a href=\"https:\/\/zywi.cn\/?golink=aHR0cHM6Ly9jZG4uanNkZWxpdnIubmV0L2doLzUyMXh1ZXdlaWhhbi9HaXRIdWI1MjBAbWFpbi9ob3N0cw==\" target=\"_blank\" rel=\"noreferrer noopener\">https:\/\/cdn.jsdelivr.net\/gh\/521xueweihan\/GitHub520@main\/hosts<\/a>&nbsp;\u6587\u4ef6<\/strong><\/p>\n\n\n\n<p><strong><a href=\"https:\/\/zywi.cn\/?golink=aHR0cHM6Ly9yYXcuaGVsbG9naXRodWIuY29tL2hvc3Rz\">https:\/\/raw.hellogithub.com\/hosts<\/a>&nbsp;\u6587\u672c\u7c7b\u578b\u76f4\u63a5\u8bbf\u95ee\u67e5\u770b<\/strong><\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"wznav_1\"><strong>\u5404\u4e2a\u5e73\u53f0\u914d\u7f6e\u65b9\u6cd5<\/strong><\/h2>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"wznav_2\"><strong>\u4fee\u6539 hosts \u6587\u4ef6<\/strong><\/h3>\n\n\n\n<p>hosts \u6587\u4ef6\u5728\u6bcf\u4e2a\u7cfb\u7edf\u7684\u4f4d\u7f6e\u4e0d\u4e00\uff0c\u8be6\u60c5\u5982\u4e0b\uff1a<\/p>\n\n\n\n<p>Windows \u7cfb\u7edf\uff1aC:\\Windows\\System32\\drivers\\etc\\hosts<\/p>\n\n\n\n<p>Linux \u7cfb\u7edf\uff1a\/etc\/hosts<\/p>\n\n\n\n<p>Mac\uff08\u82f9\u679c\u7535\u8111\uff09\u7cfb\u7edf\uff1a\/etc\/hosts<\/p>\n\n\n\n<p>Android\uff08\u5b89\u5353\uff09\u7cfb\u7edf\uff1a\/system\/etc\/hosts<\/p>\n\n\n\n<p>iPhone\uff08iOS\uff09\u7cfb\u7edf\uff1a\/etc\/hosts<\/p>\n\n\n\n<p>\u4fee\u6539\u65b9\u6cd5\uff0c\u628a\u7b2c\u4e00\u6b65\u7684\u5185\u5bb9\u590d\u5236\u5230\u6587\u672c\u672b\u5c3e\uff1a<\/p>\n\n\n\n<p>Windows \u4f7f\u7528\u8bb0\u4e8b\u672c\u3002<\/p>\n\n\n\n<p>Linux\u3001Mac \u4f7f\u7528 Root \u6743\u9650\uff1asudo vi \/etc\/hosts\u3002<\/p>\n\n\n\n<p>iPhone\u3001iPad \u987b\u8d8a\u72f1\u3001Android \u5fc5\u987b\u8981 root\u3002<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"wznav_3\"><strong>&nbsp;\u6fc0\u6d3b\u751f\u6548<\/strong><\/h3>\n\n\n\n<p>\u5927\u90e8\u5206\u60c5\u51b5\u4e0b\u662f\u76f4\u63a5\u751f\u6548\uff0c\u5982\u672a\u751f\u6548\u53ef\u5c1d\u8bd5\u4e0b\u9762\u7684\u529e\u6cd5\uff0c\u5237\u65b0 DNS\uff1a<\/p>\n\n\n\n<p>Windows\uff1a\u5728 CMD \u7a97\u53e3\u8f93\u5165\uff1aipconfig \/flushdns<\/p>\n\n\n\n<p>Linux \u547d\u4ee4\uff1asudo rcnscd restart<\/p>\n\n\n\n<p>Mac \u547d\u4ee4\uff1asudo killall -HUP mDNSResponder<\/p>\n\n\n\n \n","protected":false},"excerpt":{"rendered":"<p>\u5b9e\u65f6\u66f4\u65b0\u7684github hosts\u5730\u5740 https:\/\/cdn.jsdelivr.net\/gh\/521xueweihan\/GitHub520@main\/hosts&nbsp;\u6587\u4ef6 https:\/\/raw.hellogithub.com\/hosts&nbsp;\u6587\u672c\u7c7b\u578b\u76f4\u63a5\u8bbf\u95ee\u67e5\u770b \u5404\u4e2a\u5e73\u53f0\u914d\u7f6e\u65b9\u6cd5 \u4fee\u6539 hosts \u6587\u4ef6 hosts \u6587\u4ef6\u5728\u6bcf\u4e2a\u7cfb\u7edf\u7684\u4f4d\u7f6e\u4e0d\u4e00\uff0c\u8be6\u60c5\u5982\u4e0b\uff1a Windows \u7cfb\u7edf\uff1aC:\\Windows\\System32\\drivers\\etc\\hosts Linux \u7cfb\u7edf\uff1a\/etc\/hosts Mac\uff08\u82f9\u679c\u7535\u8111\uff09\u7cfb\u7edf\uff1a\/etc\/hosts Android\uff08\u5b89\u5353\uff09\u7cfb\u7edf\uff1a\/system\/etc\/hosts iPhone\uff08iOS\uff09\u7cfb\u7edf\uff1a\/etc\/hosts \u4fee\u6539\u65b9\u6cd5\uff0c\u628a\u7b2c\u4e00\u6b65\u7684\u5185\u5bb9\u590d\u5236\u5230\u6587\u672c\u672b\u5c3e\uff1a Windows \u4f7f\u7528\u8bb0\u4e8b\u672c\u3002 Linux\u3001Mac \u4f7f\u7528 Root \u6743\u9650\uff1asudo vi \/etc\/hosts\u3002 iPhone\u3001iPad \u987b\u8d8a\u72f1\u3001Android \u5fc5\u987b\u8981 root\u3002 &nbsp;\u6fc0\u6d3b\u751f\u6548 \u5927\u90e8\u5206\u60c5\u51b5\u4e0b\u662f\u76f4\u63a5\u751f\u6548\uff0c\u5982\u672a\u751f\u6548\u53ef\u5c1d\u8bd5\u4e0b\u9762\u7684\u529e\u6cd5\uff0c\u5237\u65b0 DNS\uff1a Windows\uff1a\u5728 CMD \u7a97\u53e3\u8f93\u5165\uff1aipconfig \/flushdns Linux \u547d\u4ee4\uff1asudo rcnscd restart Mac [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[46],"tags":[],"class_list":["post-629","post","type-post","status-publish","format-standard","hentry","category-host"],"_links":{"self":[{"href":"https:\/\/book.yuekegu.com\/index.php\/wp-json\/wp\/v2\/posts\/629","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/book.yuekegu.com\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/book.yuekegu.com\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/book.yuekegu.com\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/book.yuekegu.com\/index.php\/wp-json\/wp\/v2\/comments?post=629"}],"version-history":[{"count":2,"href":"https:\/\/book.yuekegu.com\/index.php\/wp-json\/wp\/v2\/posts\/629\/revisions"}],"predecessor-version":[{"id":631,"href":"https:\/\/book.yuekegu.com\/index.php\/wp-json\/wp\/v2\/posts\/629\/revisions\/631"}],"wp:attachment":[{"href":"https:\/\/book.yuekegu.com\/index.php\/wp-json\/wp\/v2\/media?parent=629"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/book.yuekegu.com\/index.php\/wp-json\/wp\/v2\/categories?post=629"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/book.yuekegu.com\/index.php\/wp-json\/wp\/v2\/tags?post=629"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}