linux中openssl升級到openssl1.0.1G版本

來源:互聯網
上載者:User

下面呢,鐵匠用一個純淨版的系統來給大家做一個簡單的升級教程。因為是純淨版,所以一些gcc、wget都要重新下載。這樣呢也給一下新手一個更好的練習機會,大牛勿噴。

    首先我們先去下載一下openssl的包,這裡呢為了方便大家下載,鐵匠把更新包放在百度雲端硬碟裡面共用了,需要的可以直接去下載。
    下載地址:http://pan.baidu.com/s/1i3FUIpv  下載密碼:a3vl
    
一:安裝一些需要的環境
 代碼如下 複製代碼
[root@localhos /]# yum -y install gcc-c++
二:解壓安裝
 代碼如下 複製代碼
[root@localhos /]# tar -zxvf openssl-1.0.1g.tar.gz
[root@localhos /]# cd openssl-1.0.1g
[root@localhos openssl-1.0.1g]# ./config
[root@localhos openssl-1.0.1g]# make && make install
三:配置
 代碼如下 複製代碼
[root@localhos openssl-1.0.1g]# mv /usr/bin/openssl /usr/bin/openssl.old
[root@localhos openssl-1.0.1g]# ln -s /usr/local/ssl/bin/openssl /usr/bin/openssl
[root@localhos openssl-1.0.1g]# ln -s /usr/local/ssl/include/openssl/ /usr/include/openssl
[root@localhos openssl-1.0.1g]# echo “/usr/local/ssl/lib/” >> /etc/ld.so.conf
[root@localhos openssl-1.0.1g]# ldconfig -v
四:查看版本驗證
[root@localhos openssl-1.0.1g]# openssl version -a
如果看到了openssl的版本是1.0.1g 就說明版本升級成功了。

五:常見問題

問題:執行./config時出現,Warning: File `config’ has modification time 1.6e+05 s in the future 

原因:一般只會在虛擬機器裡面出現,時間沒有同步,所以呢同步一下時間就可以了!

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在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.