1. 确定ip:https://github.com.ipaddress.com

  2. 确定静态资源ip:https://github.com.ipaddress.com/assets-cdn.github.com

  3. 确定域名ip:https://fastly.net.ipaddress.com/github.global.ssl.fastly.net

  4. 修改host:

    sudo gedit /etc/hosts
    

  5. 在hosts最后加上前三步获得的内容

    140.82.113.4 github.com
    185.199.108.153 assert-cdn.github.com
    146.75.77.194 github.global.ssl.fastly.net
             
  6. 重启network

    sudo /etc/init.d/networking restart

Logo

秉承“创新、开放、协作、共享”的开源价值观,致力于为大规模开源开放协同创新助力赋能,打造创新成果孵化和新时代开发者培养的开源创新生态!支持公有云使用、私有化部署以及软硬一体化私有部署。

更多推荐