git 无声地失败,curl https 因非法指令而失败

标签 git ssl curl centos cpanel

就在最近,我的暂存服务器无法执行 git pullgit fetch

git pull origin master

运行根本没有任何效果,没有给出错误消息,没有文件更改,它只是返回到提示符。它曾经有效(几周前),所以我不确定在此期间发生了什么变化。 Remote 绝对正确。

经过大量搜索后,我将其缩小为潜在的 curl 问题,但我正在努力寻找解决方案。

curl https://www.google.co.uk -v

给我:

* About to connect() to www.google.co.uk port 443 (#0)
* Trying 216.58.208.99... connected
* Connected to www.google.co.uk (216.58.208.99) port 443 (#0)
* Initializing NSS with certpath: none
*   CAfile: /etc/pki/tls/certs/ca-bundle.crt
  CApath: none
Illegal instruction (core dumped)

我已经检查过 ca-bundle.crt 存在于该位置,但老实说,这远远超出了我的专业领域。我已经以我的普通用户和 root 身份尝试过这个。

  • CentOS 6.8
  • WHM 56.0
  • curl 7.19.7-52.el6

有什么想法我接下来应该尝试什么吗?

最佳答案

我也遇到了同样的问题... 有一个临时解决方案。 导出 NSS_DISABLE_HW_GCM=1

有关详细信息,请参阅 https://bugs.centos.org/view.php?id=10930https://gryzli.info/2016/05/28/centos-6-curl-ssl-illegal-instruction-error/

关于git 无声地失败,curl https 因非法指令而失败,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/37879665/

相关文章:

git - Jenkins CI 构建后操作 - 如何推送到 Stash

git - 如何从 git 中的重命名检测中排除某些文件模式?

mysql - Cloud SQL 上的证书验证

ssl - mbed TLS - 移植到非操作系统(无线程上下文)

javascript - RESTful 客户端中的 Ajax 请求

git - Rails 3.1 删除的文件夹可以用 git 恢复吗?

git - 让 Git 确认以前移动的文件

ssl - 带有 GoDaddy SSL 证书的 AWS ELB

c - libcurl 回调函数,使用简单的接口(interface)

javascript - 通过 javascript 或 jquery 中的 curl 请求将值发布到 golang