美文网首页
curl: (7) Failed to connect to r

curl: (7) Failed to connect to r

作者: ClementGu | 来源:发表于2021-01-06 11:02 被阅读0次

问题

再安装RVM的时候遇到端口无法访问的问题。

解决方法

  • 先去ip查询网站查找到对应的ip https://www.ipaddress.com/
    raw.githubusercontent.com将这个复制到ip搜索框就能查询到ip了

  • 在host中添加ip

sudo vi /etc/hosts //打开host
添加地址 199.232.96.133 raw.githubusercontent.com

如下图


image.png

//如果ip不一致以查询的为准

  • 安装
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install.sh)"

相关文章

网友评论

      本文标题:curl: (7) Failed to connect to r

      本文链接:https://www.haomeiwen.com/subject/xxcnoktx.html