一个在室内建筑装饰工程行业摸爬滚打5年的农民工,在这里记录一些日常生活中的琐事。

解决访问Github失败

方法一:github定制版的dns服务,解析github最优的ip

以管理员身份运行cmd,键入如下命令,其中D:\Softs为软件实际目录

D:\Softs\FastGithub.exe start // 安装并启动服务
D:\Softs\FastGithub.exe stop // 卸载并删除服务

来源:https://gitee.com/jiulang/fast-github

方法二:修改Hosts文件

# Github Hosts
# Update 20210707
# domain: github.com
140.82.113.4 github.com
140.82.113.9 nodeload.github.com
140.82.114.5 api.github.com
140.82.113.9 codeload.github.com
185.199.108.133 raw.github.com
185.199.108.153 training.github.com
185.199.108.153 assets-cdn.github.com
185.199.108.153 documentcloud.github.com
185.199.108.154 help.github.com

# domain: githubstatus.com
185.199.108.153 githubstatus.com

# domain: fastly.net
199.232.69.194 github.global.ssl.fastly.net

# domain: githubusercontent.com
185.199.108.133 raw.githubusercontent.com
185.199.108.133 cloud.githubusercontent.com
185.199.108.133 gist.githubusercontent.com
185.199.108.133 marketplace-screenshots.githubusercontent.com
185.199.108.133 repository-images.githubusercontent.com
185.199.108.133 user-images.githubusercontent.com
185.199.108.133 desktop.githubusercontent.com
185.199.108.133 avatars.githubusercontent.com
185.199.108.133 avatars0.githubusercontent.com
185.199.108.133 avatars1.githubusercontent.com
185.199.108.133 avatars2.githubusercontent.com
185.199.108.133 avatars3.githubusercontent.com
185.199.108.133 avatars4.githubusercontent.com
185.199.108.133 avatars5.githubusercontent.com
185.199.108.133 avatars6.githubusercontent.com
185.199.108.133 avatars7.githubusercontent.com
185.199.108.133 avatars8.githubusercontent.com
# End of the section

转自:https://zhuanlan.zhihu.com/p/148083044