# 下载软件包
wget https://www.openssl.org/source/openssl-1.1.1v.tar.gz
# 编译安装 OpenSSL
tar zxvf openssl-1.1.1v.tar.gz
cd openssl-1.1.1v
./config --prefix=/usr/local/openssl-1.1.1
make && make install
# 备份原 OpenSSL
mv /usr/bin/openssl /usr/bin/openssl.bak
ln -s /usr/local/openssl-1.1.1/bin/openssl /usr/bin/openssl
# 添加 openssl 库路径 至 ld.so.conf
echo "/usr/local/openssl-1.1.1/lib/" >> /etc/ld.so.conf
# 查看是否生效
ldconfig -v
标签:bin,1.1,tar,1v,openssl,OpenSSL,编译,usr,Linux
From: https://blog.51cto.com/u_15548243/7389042