最新下载
热门教程
- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
- 10
centos系统中php Curl 无法访问https ,ssl_version 是 NSS,不是openssl
时间:2022-06-30 21:04:26 编辑:袖梨 来源:一聚教程网
首先确定php是否已经安装扩展curl和openssl,如果没有请略过。。。
查看phpinfo 发现curl 会发现 curl 7.19.7 libcurl/7.19.7 NSS/3.19.1 Basic ECC (而不是openssl)
因为centos 6.5(我是用的版本,其他版本没有测试)默认安装curl是用ssl的版本是NSS
所以需要对Curl进行重新编译
先去官方下载 我依然下载是7.19.7版本,进行重新编译
./configure --prefix=/usr --without-nss --with-ssl
make && make install
ldconfig
这是后查看 curl -V curl 7.19.7 libcurl/7.19.7 OpenSSL/1.0.1e 显示的就是openssl 就可以访问https的网站了
当然是php有效,需要重启httpd
OK 。。。搞定
相关文章
- 宗门志炼丹方法及建筑升级介绍说明 10-04
- 多洛可小镇河谷商人库玛桑位置一览 10-04
- 毁灭战士黑暗时代赫贝斯火门打开方法 10-04
- 宗门志突破金丹境界方法介绍说明 10-04
- 多洛可小镇狙击发射器素材获取攻略分享 10-04
- 毁灭战士黑暗时代装备升级方法分享 10-04