# 1.安装OpenSSL
yum install bzip2-devel
yum install libffi-devel -y
yum install -y zlib zlib-dev openssl-devel sqlite-devel bzip2-devel libffi libffi-devel gcc gcc-c++
# cd到一个下载目录,这里为/opt,openssl压缩包会被下载到/opt目录下,可任意设置已存在的文件夹
cd /opt
wget http://www.openssl.org/source/openssl-1.1.1.tar.gz --no-check-certificate
tar -zxvf openssl-1.1.1.tar.gz
cd openssl-1.1.1
# 编译安装,安装路径为/usr/local/openssl
./config --prefix=/usr/local/openssl shared zlib
make && make install
# 添加环境变量
echo "export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/openssl/lib" >> /etc/profile
# 刷新环境变量
source /etc/profile
标签:1.1,tar,openssl,devel,install,Linux,cd
From: https://blog.csdn.net/qq_35204012/article/details/137263756