Githubアクセスの遅いソリューション

ローカルホストファイルにマッピングを追加するには、次の手順に従います。

1. C:\ Windows \ System32 \ drivers \ etcディレクトリにあるテキストエディタでhostsファイルを開きます;
Linuxのパス:/ etc / hosts

2. http://tool.chinaz.com/dnsを開きます。これは、ドメイン名のマッピングを照会するためのツールです。

3.github.global.ssl.fastly.netとassets-cdn.github.comの2つのアドレスをクエリします

4.数回チェックし、安定した低遅延のIPを選択して、次のようにホストファイルに追加します。

5.ファイルを保存します

6.DNSを更新します

ipconfig /flushdns  // ipconfig和/flushdns之间有个空格才行
  • 1

ホストファイル:

# For example:
#
#      102.54.94.97     rhino.acme.com          # source server
#       38.25.63.10     x.acme.com              # x client host

# localhost name resolution is handled within DNS itself.
#   127.0.0.1       localhost
#   ::1             localhost

# github
192.30.253.112 assets-cdn.github.com
151.101.88.249 github.global.ssl.fastly.net
192.30.253.113 github.com
151.101.184.133 assets-cdn.github.com
185.199.108.153 documentcloud.github.com
192.30.253.118 gist.github.com
185.199.108.153 help.github.com
192.30.253.120 nodeload.github.com
151.101.184.133 raw.github.com
18.204.240.114 status.github.com
192.30.253.166 training.github.com
192.30.253.112 www.github.com
151.101.185.194 github.global.ssl.fastly.net
151.101.184.133 avatars0.githubusercontent.com
151.101.184.133 avatars1.githubusercontent.com

おすすめ

転載: blog.csdn.net/weixin_40013817/article/details/109383690
おすすめ