curl: (7) Failed to connect to raw.githubusercontent.com port 443: Connection refused

简介: curl: (7) Failed to connect to raw.githubusercontent.com port 443: Connection refused

就是网址不对。怎么办?

  • 查找IP

打开网站https://www.ipaddress.com。打不开?那阁下看看其他博文怎么说的。

输入raw.githubusercontent.com,看到当前IP。

  • 修改文件

打开/etc/hosts,输入以下内容(185.199.108.133就是刚刚查询到的IP)。

185.199.108.133 raw.githubusercontent.com

  • 再次尝试
curl -O https://raw.githubusercontent.com/ros/rosdistro/master/ros.asc
目录
相关文章
|
4月前
|
Go 开发工具 git
【git】解决:Failed to connect to 127.0.0.1 port 7890: Connection refused
【git】解决:Failed to connect to 127.0.0.1 port 7890: Connection refused
521 0
|
11天前
|
分布式计算 Hadoop 网络安全
[m1pro ] ssh: connect to host localhost port 22: Connection refused
[m1pro ] ssh: connect to host localhost port 22: Connection refused
mac安装homebrew失败:Failed to connect to raw.githubusercontent.com port 443: Connection refused
mac安装homebrew失败:Failed to connect to raw.githubusercontent.com port 443: Connection refused
|
9月前
|
网络协议
解决 curl: (7) Failed to connect to raw.githubusercontent.com port 443 ...
解决 curl: (7) Failed to connect to raw.githubusercontent.com port 443 ...
176 1
|
6月前
|
Java 网络安全 Docker
curl: (56) Recv failure: Connection reset by peer
curl: (56) Recv failure: Connection reset by peer
318 0
|
9月前
|
网络协议 Linux 网络安全
使用frp时遇到的问题connect: connection refuseddial tcp xxxx:7000: connect: connection refused
最近在做的项目需要用到frp来做代理连接本地内网机,卡在最后启动客户端的时候,提示报错:login to server failed: dial tcp xxxx:7000: connect: connection refuseddial tcp xxxx:7000: connect: connection refused!!找了很多尝试的办法,现在给大家列一下希望对大家有帮助。
1554 0
|
Java 应用服务中间件 PHP
Nginx——*5 connect() failed (111: Connection refused) while connecting to upstream
Nginx——*5 connect() failed (111: Connection refused) while connecting to upstream
373 0
Nginx——*5 connect() failed (111: Connection refused) while connecting to upstream
|
数据安全/隐私保护
记录curl: (7) Failed to connect to raw.githubusercontent.com port 443: Connection refused解决方案
关于这个错误其实遇到过好多次了,基本都是在每次换电脑之后执行
记录curl: (7) Failed to connect to raw.githubusercontent.com port 443: Connection refused解决方案
|
Shell Ruby
mac 安装brew报错 Failed to connect to raw.githubusercontent.com port 443: Connection refused解决办法...
mac 安装brew报错 Failed to connect to raw.githubusercontent.com port 443: Connection refused解决办法...
492 0