curl: (35) error:1407742E:SSL routines:SSL23_GET_SERVER_HELLO:tlsv1 alert protocol version 错误

yufei       4 年, 9 月 前       4599

在我的苹果电脑系统上,是因为内置的 curl 的版本太低了,只能用 brew 新装一个代替

curl --version

输出结果

curl 7.42.1 (x86_64-apple-darwin14.3.0) libcurl/7.42.1 OpenSSL/0.9.8zd zlib/1.2.11
Protocols: dict file ftp ftps gopher http https imap imaps ldap ldaps pop3 pop3s rtsp smb smbs smtp smtps telnet tftp 
Features: IPv6 Largefile NTLM NTLM_WB SSL libz UnixSockets 

而 brew 的最新版本,已经来到

[www.twle.cn]# brew info curl
curl: stable 7.65.3 (bottled), HEAD [keg-only]
Get a file from an HTTP, HTTPS or FTP server

好吧,使用下面的命令来安装

brew install curl

然后记得把下面的命令写到 ~/.bash_profile~/.zshrc

export PATH="$(brew --prefix curl)/bin:$PATH"
目前尚无回复
简单教程 = 简单教程,简单编程
简单教程 是一个关于技术和学习的地方
现在注册
已注册用户请 登入
关于   |   FAQ   |   我们的愿景   |   广告投放   |  博客

  简单教程,简单编程 - IT 入门首选站

Copyright © 2013-2022 简单教程 twle.cn All Rights Reserved.