WSL2_05 报错 Connecting to raw.githubusercontent.com failed: Connection refused. 解决办法
Posted LiQiang33
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了WSL2_05 报错 Connecting to raw.githubusercontent.com failed: Connection refused. 解决办法相关的知识,希望对你有一定的参考价值。
文章目录
前言
在下载oh-my-zsh的时候,使用wget进行下载,突然报错了
wget命令:
sh -c "$(wget -O- https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"
查了一些网上的blog,最终解决了,应该是域名解析的问题,没办法自动解析我们进行手动配置
1 原因
域名解析被污染
2 解决
手动配置域名解析
编辑host
文件
sudo vim /etc/hosts
在最后添加域名映射
185.199.108.133 raw.githubusercontent.com
3 查询某个网站的IP
查询网址:https://www.ipaddress.com
输入http
地址进行查询即可
Reference
ubuntu 20.04 | 解决 Connecting to raw.githubusercontent.com :443… failed: Connection refused https://blog.csdn.net/m0_52650517/article/details/119831630
【error】Connecting to raw.githubusercontent.com failed: Connection refused. 解决办法 https://www.cnblogs.com/happyamyhope/p/14167083.html
以上是关于WSL2_05 报错 Connecting to raw.githubusercontent.com failed: Connection refused. 解决办法的主要内容,如果未能解决你的问题,请参考以下文章
connect() failed (111: Connection refused) while connecting to upstream报错处理
nginx:connect() to 127.0.0.1:5601 failed (13: Permission denied) while connecting to upstream错误(示例代码
压测引起的 nginx报错 502 no live upstreams while connecting to upstream解决
nginx 报错 connect() failed (111: Connection refused) while connecting to upstream
Nginx 高并发下报错 connect() failed (110: Connection timed out) while connecting to upstream
Android 系统编译不过了报错Try jack-diagnose,SSL error when connecting to the Jack server