Failed to connect to github.com port 443 after 21059 ms: Couldn't connect to server
时间: 2023-09-20 12:03:47 浏览: 134
mac 安装homebrew出错 Failed to connect to raw.githubusercontent.com port 443: Connection refused error:
5星 · 资源好评率100%
当在上传或更新代码时遇到"Failed to connect to github.com port 443 after 21059 ms: Couldn't connect to server"的错误提示时,这通常是由于无法连接到github.com服务器所导致的。这个问题可能是由几种原因引起的,其中一种可能是因为开启了代理。解决这个问题的方法如下:
1. 关闭代理:关闭系统或者网络设置中的代理设置。
2. 检查代理端口是否与git端口一致:在网络设置中查看代理的端口号是否与git所使用的端口号一致,如果不一致,可以尝试修改代理的端口号以与git端口一致。
如果以上方法无法解决问题,还可以尝试检查网络连接是否正常,或者尝试通过其他网络环境连接github.com。希望这些方法能够帮助你解决问题。<span class="em">1</span><span class="em">2</span><span class="em">3</span>
#### 引用[.reference_title]
- *1* [github创建仓库及gitbash代码管理](https://download.csdn.net/download/qq_39466755/88112566)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_2"}}] [.reference_item style="max-width: 33.333333333333336%"]
- *2* [git报错:Failed to connect to github.com port 443 after 21084 ms: Couldn‘t connect to serve](https://blog.csdn.net/qq_43651168/article/details/131074308)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_2"}}] [.reference_item style="max-width: 33.333333333333336%"]
- *3* [Failed to connect to github.com port 443 after 21059 ms: Couldn‘t connect to server](https://blog.csdn.net/qq_54042324/article/details/131573359)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_2"}}] [.reference_item style="max-width: 33.333333333333336%"]
[ .reference_list ]
阅读全文