{"id":13486336,"url":"https://github.com/maxiaof/github-hosts","last_synced_at":"2025-03-27T20:32:51.757Z","repository":{"id":41181523,"uuid":"465175962","full_name":"maxiaof/github-hosts","owner":"maxiaof","description":"通过修改Hosts解决国内Github经常抽风访问不到,每日更新","archived":false,"fork":false,"pushed_at":"2024-10-30T01:12:51.000Z","size":699,"stargazers_count":1208,"open_issues_count":0,"forks_count":71,"subscribers_count":27,"default_branch":"master","last_synced_at":"2024-10-30T03:53:13.700Z","etag":null,"topics":["github","hosts"],"latest_commit_sha":null,"homepage":"","language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/maxiaof.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null}},"created_at":"2022-03-02T05:56:19.000Z","updated_at":"2024-10-30T01:12:54.000Z","dependencies_parsed_at":"2023-09-30T02:24:59.397Z","dependency_job_id":"2714d30a-94f7-4d2f-9de8-9cab3618306e","html_url":"https://github.com/maxiaof/github-hosts","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/maxiaof%2Fgithub-hosts","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/maxiaof%2Fgithub-hosts/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/maxiaof%2Fgithub-hosts/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/maxiaof%2Fgithub-hosts/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/maxiaof","download_url":"https://codeload.github.com/maxiaof/github-hosts/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":222313904,"owners_count":16965410,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["github","hosts"],"created_at":"2024-07-31T18:00:44.227Z","updated_at":"2025-03-27T20:32:51.732Z","avatar_url":"https://github.com/maxiaof.png","language":"Java","funding_links":[],"categories":["Java"],"sub_categories":[],"readme":"# GitHub-Hosts\n\n## 一、介绍\n通过修改Hosts解决国内Github经常抽风访问不到\n\n---\n\n## 二、使用方法\n\n### 2.1 复制下面的内容\n```bash\n#Github Hosts Start\n#Update Time: 2025-03-27\n#Project Address: https://github.com/maxiaof/github-hosts\n#Update URL: https://raw.githubusercontent.com/maxiaof/github-hosts/master/hosts\n140.82.113.25 alive.github.com\n140.82.114.25 live.github.com\n185.199.111.154 github.githubassets.com\n140.82.113.21 central.github.com\n185.199.111.133 desktop.githubusercontent.com\n185.199.111.133 camo.githubusercontent.com\n185.199.111.133 github.map.fastly.net\n146.75.121.194 github.global.ssl.fastly.net\n140.82.121.3 gist.github.com\n185.199.109.153 github.io\n140.82.121.4 github.com\n192.0.66.2 github.blog\n140.82.121.5 api.github.com\n185.199.108.133 raw.githubusercontent.com\n185.199.111.133 user-images.githubusercontent.com\n185.199.111.133 favicons.githubusercontent.com\n185.199.110.133 avatars5.githubusercontent.com\n185.199.111.133 avatars4.githubusercontent.com\n185.199.110.133 avatars3.githubusercontent.com\n185.199.108.133 avatars2.githubusercontent.com\n185.199.108.133 avatars1.githubusercontent.com\n185.199.110.133 avatars0.githubusercontent.com\n185.199.109.133 avatars.githubusercontent.com\n140.82.121.10 codeload.github.com\n52.217.195.25 github-cloud.s3.amazonaws.com\n3.5.27.85 github-com.s3.amazonaws.com\n3.5.25.67 github-production-release-asset-2e65be.s3.amazonaws.com\n52.216.43.137 github-production-user-asset-6210df.s3.amazonaws.com\n3.5.28.58 github-production-repository-file-5c1aeb.s3.amazonaws.com\n185.199.108.153 githubstatus.com\n140.82.114.18 github.community\n51.137.3.17 github.dev\n140.82.114.22 collector.github.com\n13.107.42.16 pipelines.actions.githubusercontent.com\n185.199.108.133 media.githubusercontent.com\n185.199.110.133 cloud.githubusercontent.com\n185.199.110.133 objects.githubusercontent.com\n#Github Hosts End\n\n```\n最后更新时间：`2025-03-27`\n\n## 2.2 修改 hosts 文件\nhosts 文件在不同系统位置不一，详情如下：\n- Windows 系统：`C:\\Windows\\System32\\drivers\\etc\\hosts`。\n- Mac（苹果电脑）系统：`/etc/hosts`。\n- Linux 系统：`/etc/hosts`。\n\n修改方法，把2.1的内容复制到文本末尾：\n\n1. Windows 使用记事本。\n2. Linux、Mac 使用 Root 权限：`sudo vi /etc/hosts`。\n\n#### 2.3 激活生效\n大部分情况下是直接生效，如未生效可尝试下面的办法，刷新 DNS：\n\n1. Windows：在 CMD 窗口输入：`ipconfig /flushdns`\n2. Mac 命令：`sudo killall -HUP mDNSResponder`\n3. Linux 命令：`sudo nscd restart`\n\n**Tips：** 如以上刷新不好使，请重启尝试\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmaxiaof%2Fgithub-hosts","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmaxiaof%2Fgithub-hosts","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmaxiaof%2Fgithub-hosts/lists"}