Failed to connect to github.com port 443: Operation timed out

网友投稿 2964 2022-09-05

Failed to connect to github.com port 443: Operation timed out

Failed to connect to github.com port 443: Operation timed out

今天在git push东西的时候发现超时了,找了好多办法也解决不了,后面发现配置一下hosts就行了,所以分享一下,首先找到github有用的ip:

访问网址:​​vim /etc/hosts

添加一行

### Host Database## localhost is used to configure the loopback interface# when the system is booting. Do not change this entry.##127.0.0.1 localhost255.255.255.255 broadcasthost::1 localhost52.74.223.119 github.com

保存退出:

:wq

本地ping一下:

➜ Frequent-use git:(master) ping github.comPING github.com (52.74.223.119): 56 data bytes64 bytes from 52.74.223.119: icmp_seq=0 ttl=37 time=223.711 ms64 bytes from 52.74.223.119: icmp_seq=1 ttl=37 time=224.997 ms^C--- github.com ping statistics ---3 packets transmitted, 2 packets received, 33.3% packet lossround-trip min/avg/max/stddev = 223.711/224.354/224.997/0.643 ms

发现能ping通就可以使用了哈。

参考文献

​​Failed to connect to github.com port 443 Timed out​​

版权声明:本文内容由网络用户投稿,版权归原作者所有,本站不拥有其著作权,亦不承担相应法律责任。如果您发现本站中有涉嫌抄袭或描述失实的内容,请联系我们jiasou666@gmail.com 处理,核实后本网站将在24小时内删除侵权内容。

上一篇:python 处理1998-01-2003版-带音.txt文本
下一篇:理解MySQL——索引与优化(深入理解mysql索引)
相关文章

 发表评论

暂时没有评论,来抢沙发吧~