成功解决:curl: (35) OpenSSL SSL_connect: SSL_ERROR_SYSCALL in connection to bit.ly:443

转:

成功解决:curl: (35) OpenSSL SSL_connect: SSL_ERROR_SYSCALL in connection to bit.ly:443

执行以下指令下载Fabric二进制及docker镜像时出现标题所指的报错内容

curl -sSL https://bit.ly/2ysbOFE | bash -s -- 2.2.0 1.4.8 -s

成功解决:curl: (35) OpenSSL SSL_connect: SSL_ERROR_SYSCALL in connection to bit.ly:443
原因是访问了国外的链接,没有vpn的情况下改变docker镜像即可成功下载该资源。

1.查看docker镜像源

docker info|grep Mirrors -A 1

成功解决:curl: (35) OpenSSL SSL_connect: SSL_ERROR_SYSCALL in connection to bit.ly:443

2.修改docker镜像源

vim /etc/docker/daemon.json
{
"registry-mirrors":["https://registry.docker-cn.com"]
}

I插入,插入完成后按ESC退出插入,输出:wq!保存退出

如果显示无法写入请使用sudo chmod -R 777 docker/指令给docker最高权限方可写入。

成功解决:curl: (35) OpenSSL SSL_connect: SSL_ERROR_SYSCALL in connection to bit.ly:443
重启docker服务

systemctl restart docker.service

查看docker镜像

docker info|grep Mirrors -A 1

成功解决:curl: (35) OpenSSL SSL_connect: SSL_ERROR_SYSCALL in connection to bit.ly:443

docker镜像已修改成功

重启一下网络

sudo /etc/init.d/networking restart

成功解决:curl: (35) OpenSSL SSL_connect: SSL_ERROR_SYSCALL in connection to bit.ly:443

3.重新执行下载Fabric二进制及镜像的指令

curl -sSL https://bit.ly/2ysbOFE | bash -s -- 2.2.0 1.4.8 -s
成功解决:curl: (35) OpenSSL SSL_connect: SSL_ERROR_SYSCALL in connection to bit.ly:443

成功解决:curl: (35) OpenSSL SSL_connect: SSL_ERROR_SYSCALL in connection to bit.ly:443的问题

欢迎小伙伴的讨论,若有问题请在评论区评论或私信,谢谢你。

转:

成功解决:curl: (35) OpenSSL SSL_connect: SSL_ERROR_SYSCALL in connection to bit.ly:443

上一篇:切割矩形,C++版


下一篇:CODING DevOps 微服务项目实战系列第二课来啦!