安装RVM时报错 curl: (7) Failed to connect to raw.githubusercontent.com port 443: Connection refused

1.打开hosts文件

[code] sudo vim /etc/hosts

2.在hosts文件中修改或者插入下面一行

[code]199.232.28.133 raw.githubusercontent.com

3.接着回到外面一开始访问被拒的地方

安装RVM时报错 curl: (7) Failed to connect to raw.githubusercontent.com port 443: Connection refused

然后请求加载:结果和过程如图

安装RVM时报错 curl: (7) Failed to connect to raw.githubusercontent.com port 443: Connection refused

上一篇:nginx 80端口跳转到443


下一篇:宝塔ssl部署完,https无法访问故障解决