centos6.5 64位ssl_version 是 NSS,不是openssl

公司服务器采用的centos6.5的64位,在yum安装完PHP Nginx环境后,发现有些时间使用curl出错,经过测试发现其认的curl是NSS,而不是openssl,现将NSS转换成openssl过程记录。


首先查看curl版本会发现并不是openssl

curl -V

libcurl/7.19.7 NSS/3.35 zlib/1.2.3


因为centos 6.5(我是用的版本,其他版本没有测试)认安装curl是用ssl的版本是NSS

所以需要对Curl进行重新编译

先去官方下载 http://curl.haxx.se/download/archeology/

可以同样下载是7.19.7版本,也可以下载更高版本,进行重新编译,这里我下载的是7.35.0版本。


./configure --prefix=/usr --without-nss --with-ssl

make && make install


最后不要忘记执行

// ldconfig

echo "/usr/local/lib" >> /etc/ld.so.conf && ldconfig


再次查看curl版本

curl -V

curl 7.35.0 (x86_64-unkNown-linux-gnu) libcurl/7.35.0 OpenSSL/1.0.1e zlib/1.2.3

Protocols: dict file ftp ftps gopher http https imap imaps pop3 pop3s rtsp smtp smtps telnet tftp

Features: IPv6 Largefile NTLM NTLM_WB SSL libz


最后重新启动PHP-fpm Nginx

service PHP-fpm restart

service Nginx restart

相关文章

Centos下搭建性能监控Spotlight
CentOS 6.3下Strongswan搭建IPSec VPN
在CentOS6.5上安装Skype与QQ
阿里云基于centos6.5主机VPN配置
CentOS 6.3下配置multipah
CentOS安装、配置APR和tomcat-native