Linux下OpenSSL 安裝圖文詳解

來源:互聯網
上載者:User

標籤:

安裝環境: 
       作業系統:CentOs6.3

       OpenSSL Version:openssl-1.0.0e.tar.gz

       目前版本最新的SSL地址為http://www.openssl.org/source/openssl-1.0.0e.tar.gz 

1、將下載的壓縮包放在根目錄,

2、在檔案夾下解壓縮,命令:tar -xzf openssl-openssl-1.0.0e.tar.gz,得到openssl-openssl-1.0.0e檔案夾

3、進入解壓的目錄:cd openssl-1.0.0e

4、設定Openssl 安裝,( --prefix )參數為欲安裝之目錄,也就是安裝後的檔案會出現在該目錄下:
執行命令: ./config --prefix=/usr/local/openssl

5、執行命令./config -t

6.執行make,編譯Openssl

這裡出現的錯誤

make[1]: gcc: Command not found

上網查才發現我安裝的CentOS6.3中沒有GCC編譯器

保證系統網路暢通以後,執行命令 yum -y install gcc 安裝GCC(注意,一定要忘了順暢,不然安裝不了)

7、安裝 Openssl:
make install

8、執行以下命令

[[email protected] /]# cd /usr/local

[[email protected] local]# ldd /usr/local/openssl/bin/openssl

會出現類似如下資訊:

   

9、

查看路徑

...]# which openssl

 

查看版本

...]# openssl version

Linux下OpenSSL 安裝圖文詳解

聯繫我們

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