公司刚买了一台电脑安装rvm时命令执行 curl -sSL https://get.rvm.io | bash -s stable 报错curl: (7) Failed to connect to raw.githubusercontent.com port 443: Connection refused 链接不到服务器
解决方法:
1.前往文件夹输入 /etc 按回车

2.在文件夹中找到 hosts 将其拷贝到桌面(文件夹中不能直接修改)

3.点开在桌面中的 hosts 在其中添加 199.232.28.133 raw.githubusercontent.com ,然后将其放回文件夹替换掉文件夹中的hosts

终端重新执行 curl -sSL https://get.rvm.io | bash -s stable 等待一段时间后即可看到安装成功的提示
网友评论