📜  安装 openssl 1.0.2 - Shell-Bash 代码示例

📅  最后修改于: 2022-03-11 14:50:54.341000             🧑  作者: Mango

代码示例1
# (Install compiling library Make)  
sudo apt-get install make 

# (Download the latest OpenSSL 1.0.2g binaries)  
wget https://www.openssl.org/source/openssl-1.0.2l.tar.gz 

# (Extract the tar ball to the local directory)  
tar -xzvf openssl-1.0.2l.tar.gz 

# (Enter extracted OpenSSL directory)  
cd openssl-1.0.2l 

#  (Configure binaries for compiling)  
sudo ./config

# (install configured binaries)  
sudo make install 

# (This will create a sym link to the new binaries)  
sudo ln -sf /usr/local/ssl/bin/openssl `which openssl` 

# (Used to check the version of the Current OpenSSL binaries)  
openssl version -v