1. 程式人生 > >資料探勘|資料開發|資料分析開發|大資料|hbase|hadoop|雲端儲存|雲端計算|推薦系統

資料探勘|資料開發|資料分析開發|大資料|hbase|hadoop|雲端儲存|雲端計算|推薦系統


  • Downloading OpenSSL:

    Run the command below,

    wget http://www.openssl.org/source/openssl-1.0.1g.tar.gz

    Also, download the MD5 hash to verify the integrity of the downloaded file. In the same folder, where you downloaded the OpenSSL file, do the following:

    wget http://www.openssl.org/source/openssl-1.0.1g.tar.gz.md5
    
    md5sum openssl-1.0.1g.tar.gz
    
    cat openssl-1.0.1g.tar.gz.md5
    

    The last two commands (above) generate two strings of alpha-numeric characters. Check to see if both strings are identical or not. If not, repeat the steps above from "Downloading OpenSSL". If yes, your file has been downloaded properly. Please note that if you are using openssl for a highly secure/critical setup (or for any other reason) then you should also check the PGP signatures (not covered in this tutorial for simplicity).

  • Extracting files from the downloaded package:

    tar -xvzf openssl-1.0.1g.tar.gz

    Now, enter the directory where the package is extracted.

    cd openssl-1.0.1g
  • Configuring OpenSSL:

    ./config --prefix=/usr/local/openssl --openssldir=/usr/local/openssl

    Replace "/usr/local/openssl" above with the directory path where you want to copy the files and folders. Note: check for any error message.

  • Compiling OpenSSL:

    make

    Note: check for any error message.

  • Installing OpenSSL:

    As root (for privileges on destination directory), run the following.

    With sudo,
    sudo make install

    Without sudo,

    make install

    Note: check for any error messages.

Thats it. OpenSSL has been successfully installed. You can run the version command to see if it worked or not.

/usr/local/openssl/bin/openssl version
OpenSSL 1.0.1g 7 Apr 2014