服务器 2020-07-09 16:57:57

Connecting to raw.githubusercontent.com (raw.githubusercontent.com)|151.101.228.133|:443... failed: Connection refused.

今天在远程主机上安装tnvm,执行

wget -O- https://raw.githubusercontent.com/aliyun-node/tnvm/master/install.sh | bash

时出现

--2020-07-03 10:05:21--  https://raw.githubusercontent.com/aliyun-node/tnvm/master/install.sh
Resolving raw.githubusercontent.com (raw.githubusercontent.com)... 151.101.228.133
Connecting to raw.githubusercontent.com (raw.githubusercontent.com)|151.101.228.133|:443... failed: Connection refused.

解决方法

  1. wget后面添加--no-check-certificate

    wget --no-check-certificate -O- https://raw.githubusercontent.com/aliyun-node/tnvm/master/install.sh | bash
    
  2. 安装ca-certificates

    apt-get install ca-certificates -y
    

    或者是

    apt-get install ssl-cert
    

参考资料

  1. https://blog.csdn.net/weixin_43201726/article/details/82967342