GitHub 443 Operation timed out的解决办法

GitHub 443 Operation timed out的解决办法

原因

注意是443不是403错误,主要原因还是网络不通。什么取消全局代理这些都无法解决。

解决办法

  1. 要么使用全局代理

  2. 第二种方法手工设置github的host解析ip

    1. 首先取消代理(亲测无效)

      git config --global https.proxy http://127.0.0.1:1080
      git config --global http.proxy http://127.0.0.1:1080

    2. 获取ip

      1. https://github.com.ipaddress.com/ 访问该网址得到ip, 在host中添加: xxx.xxx.xxx.xxx github.com

      2. https://fastly.net.ipaddress.com/github.global.ssl.fastly.net#ipinfo 访问该网址得到ip, 在host中添加: xxx.xxx.xxx.xxx github.global.ssl.fastly.net

      3. https://github.com.ipaddress.com/assets-cdn.github.com 访问该网址得到ip, 在host中添加:

        xxx.xxx.xxx.xxx assets-cdn.github.com

        xxx.xxx.xxx.xxx assets-cdn.github.com

        xxx.xxx.xxx.xxx assets-cdn.github.com

        xxx.xxx.xxx.xxx assets-cdn.github.com

      4. sudo killall -HUP mDNSResponder;

      5. 现在可以正常访问了

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值