github加速访问

国内访问github如果慢如蜗牛,那就修改/etc/hosts手动指定域名地址.

步骤

  • 获取github相关域名的IP地址:https://www.ipaddress.com/
  • 修改/etc/hosts, 增加:
# sudo vim /etc/hosts
140.82.113.4 github.com
151.101.185.194 github.global.ssl.fastly.net
185.199.108.153 assets-cdn.github.com
185.199.108.153 github.github.io
# 151.101.184.133 githubusercontent.com
192.30.253.118 gist.github.com

参考

https://github.com/chenxuhua/issues-blog/issues/3

你可能感兴趣的:(github加速访问)