CentOS下現將NSS轉換成openssl過程

來源:互聯網
上載者:User

CentOS下現將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

相關文章

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.