openssl 升級(jí)、curl支持https配置

curl -V 查看版本,發(fā)現(xiàn)支持NSS,并不支持openssl

openssl version -a 查看版本

需要重新安裝配置curl

卸載舊版本

rpm -e --nodeps curl

yum install curl -y

1.安裝或者openssl升級(jí)

下載openssl,解壓

./config shared

(安裝的默認(rèn)路徑是/usr/local/ssl,如果你想更改目錄,請(qǐng)加上–prefix=/yourpath)

make

make test

make install

創(chuàng)建符號(hào)鏈接

?ln -s /usr/local/ssl/bin/openssl /usr/bin/openssl ?(將原來的備份即可)

ln -s /usr/local/ssl/include/openssl /usr/include/openssl

刷新動(dòng)態(tài)庫配置

vim /etc/ld.so.conf

在文件末尾加入 ? /usr/local/ssl/lib?

動(dòng)態(tài)刷新 ?ldconfig

安裝完畢,openssl version -a 查看版本

2.curl 配置

./configure –with-ssl=/usr/local/ssl

(url安裝到默認(rèn)的目錄/usr/local,或者youpath)

make

make install

ldconfig

查看版本 curl -V 即可


參考文獻(xiàn):

http://blog.csdn.net/Timsley/article/details/50782742

最后編輯于
?著作權(quán)歸作者所有,轉(zhuǎn)載或內(nèi)容合作請(qǐng)聯(lián)系作者
【社區(qū)內(nèi)容提示】社區(qū)部分內(nèi)容疑似由AI輔助生成,瀏覽時(shí)請(qǐng)結(jié)合常識(shí)與多方信息審慎甄別。
平臺(tái)聲明:文章內(nèi)容(如有圖片或視頻亦包括在內(nèi))由作者上傳并發(fā)布,文章內(nèi)容僅代表作者本人觀點(diǎn),簡(jiǎn)書系信息發(fā)布平臺(tái),僅提供信息存儲(chǔ)服務(wù)。

相關(guān)閱讀更多精彩內(nèi)容

友情鏈接更多精彩內(nèi)容