CentOS下現(xiàn)將NSS轉(zhuǎn)換成過程
先查看curl版本會(huì)發(fā)現(xiàn)并不是openssl
curl -V
libcurl/7.19.7 NSS/3.35 zlib/1.2.3
因?yàn)閏entos 6.5(我是用的版本,其他版本沒有測試)默認(rèn)安裝curl是用ssl的版本是NSS
所以需要對(duì)Curl進(jìn)行重新編譯
先去官方下載 http://www.tjdsmy.cn/download/archeology/
可以同樣下載是7.19.7版本,也可以下載更高版本,進(jìn)行重新編譯,這里我下載的是7.35.0版本。
./configure --prefix=/usr --without-nss --with-ssl
make && make install
最后不要忘記執(zhí)行
// 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
最后重新啟動(dòng)php-fpm nginx
service php-fpm restart
service nginx restart