首页 > 其他分享 >How to fix use the cURL to connect to GitHub with a 443 HTTPS error All In One

How to fix use the cURL to connect to GitHub with a 443 HTTPS error All In One

时间:2023-04-18 12:03:51浏览次数:70  
标签:243.166 use GitHub 443 -- 20.205 nvm com connect

How to fix use the cURL to connect to GitHub with a 443 HTTPS error All In One

# nvm
$ curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.3/install.sh | bash

https://github.com/nvm-sh/nvm#installing-and-updating

errors

curl: (7) Failed to connect to raw.githubusercontent.com port 443: 拒绝连接

pi@raspberrypi:~ $ curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.3/install.sh | bash
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
curl: (7) Failed to connect to raw.githubusercontent.com port 443: 拒绝连接

image

solution

  1. ping & get the IP address
$ pi@raspberrypi:~ $ ping github.com
PING github.com (20.205.243.166) 56(84) bytes of data.
64 bytes from 20.205.243.166 (20.205.243.166): icmp_seq=1 ttl=113 time=175 ms
64 bytes from 20.205.243.166 (20.205.243.166): icmp_seq=2 ttl=113 time=92.9 ms
^C
--- github.com ping statistics ---
2 packets transmitted, 2 received, 0% packet loss, time 1001ms
rtt min/avg/max/mdev = 92.860/133.709/174.558/40.849 ms


image

  1. 配置 hosts 文件
$ cat /etc/hosts

$ sudo vim /etc/hosts

# add the belows one line code
# 20.205.243.166 github.com

image

(

标签:243.166,use,GitHub,443,--,20.205,nvm,com,connect
From: https://www.cnblogs.com/xgqfrms/p/17329087.html

相关文章

  • ERROR 1045 (28000): Access denied for user '-root'@'localhost' (using password:
    以下是cmd的操作(重启服务,修改my.ini文章下面有my.ini配置) 当修改密码为123456是sqlyog连接成功修改为root时连接报老错误,又修改为123456在修改为root就连接正常了MicrosoftWindows[版本10.0.18363.1139](c)2019MicrosoftCorporation。保留所有权利。C:\ProgramFiles......
  • 应用连MySQL 报错ERROR 1129 Host is blocked because of many connection errors
    开发反馈应用连MySQL报错 createconnectionSQLException,url:连接串,errorCode1129。搜索1129报错,报错内容为:Hostisblockedbecauseofmanyconnectionerrors一、报错原因同一个ip在短时间内产生太多中断的数据库连接(超过mysql数据库max_connection_errors设置),导......
  • centos登陆报错:System is booting up. Unprivileged users are not permitted to log
    问题:开机后ssh到服务器出现此报错,大概意思是系统正在启动中非授权用户不允许登录,解决:不需要处理,等会儿系统彻底起来后重新登陆就没有了,对应文件在/run/nologin ......
  • 用postman模拟“授权代码授予”模式下获取Azure的用户信息(UserInfo)
    用postman模拟“授权代码授予”模式下获取Azure的用户信息(UserInfo)1.准备参数:图1:图2:2.调用:点击按钮“GetNewAccessToken”,如果成功那么会弹出如下对话框:3.读取AccessToken:点击按钮“Proceed”,如果成功那么会弹出如下对话框:4.调用UserInfo:点击按钮“UseToken......
  • webstorm Can't use Subversion command line client: svn
    https://www.visualsvn.com/downloads/下载: ApacheSubversioncommandlinetools解压,安装,webstrorm里面点击fix,设置svn.exe的绝对路径就可以了。......
  • 通过github搭建简单的网站
    正常搭建个网站可能需要服务器和域名,但是有没有不花钱的方法呢,github可以。首先新建个工程,名称随意然后新建个index.html文件做为首页之后点击设定最下面有个GitHubPages选择选择下面的内容,你的网站地址就会生成出来了打开网址https://huyunan.github.io/haha/ ......
  • win7users权限更改教程
    我们在使用win7系统时,经常会遇到因为没有权限而无法进行某些操作的问题,这个时候其实我们只需要将我们正在使用的账户设置为管理员就可以了,方法也很简单,下面就一起来看一下吧。win7users权限更改教程1、首先进入控制面板,选择“用户账户和家庭安全”2、点击“用户账户”3、点......
  • 启动SSH服务报:Job for ssh.service failed because the control process exited with
    Jobforssh.servicefailedbecausethecontrolprocessexitedwitherrorcodeseesystemctlstatusssh.serviceandjournalctl-xefordetails.然后按照提示输入:systemctlstatussshd.service 表示给出的提示很坑爹,完全不知道哪里出错了。经过艰难的百度,可能是SELI......
  • ClickHouse集群+ZooKeeper集群架构下的ZooKeeper集群迁移
     ClickHouse集群+ZooKeeper集群架构下的ZooKeeper集群迁移 目前测试环境的ck集群+zk集群架构如下:ClickHouseZooKeeper192.168.1.171192.168.1.172192.168.1.173192.168.1.174192.168.1.171192.168.1.172192.168.1.173由于ck和zk混搭在一块,存在较为严重......
  • 敏捷开发领域里的 Epic 以及和 User Story 的关联关系
    在敏捷软件开发领域,Epic(史诗)通常是指一个大型的、跨越多个迭代周期的用户需求或者业务功能。Epic通常包含多个相关的故事(UserStory),这些故事描述了Epic所包含的具体功能和需求。Epic是敏捷开发中用于管理大型需求和复杂业务的一种方式。它可以帮助团队更好地理解用户需求、制......