debian升级openssl
方法一:
apt install cmake wget perl
wget https://www.openssl.org/source/openssl-1.1.1i.tar.gz
tar -zxvf openssl-1.1.1i.tar.gz
cd openssl-1.1.1i
./config --prefix=/usr/local/openssl
./config -t
make && make install
mv /usr/bin/openssl /usr/bin/openssl.old
mv /usr/lib64/openssl /usr/lib64/openssl.old
mv /usr/lib64/libssl.so /usr/lib64/libssl.so.old
mv /usr/lib/x86_64-linux-gnu/libcrypto.so.1.1 /usr/lib/x86_64-linux-gnu/libcrypto.so.1.1.old
cp /usr/local/openssl/lib/libcrypto.so.1.1 /usr/lib/x86_64-linux-gnu/libcrypto.so.1.1
ln -s /usr/local/openssl/bin/openssl /usr/bin/openssl
ln -s /usr/local/openssl/include/openssl /usr/include/openssl
ln -s /usr/local/openssl/lib/libssl.so /usr/lib64/libssl.so
echo "/usr/local/openssl/lib" >> /etc/ld.so.conf
ldconfig -v
openssl version -a
方法二:
创建文件
nano /etc/apt/sources.list.d/testing.list
内容:
deb http://mirrors.163.com/debian testing main contrib non-free
更新
apt update
安装
apt install -t testing openssl
版权声明:
作者:Jays
链接:https://ijays.com/2021/10/debian-upgrade-openssl.html
来源:颓废的美
文章版权归作者所有,未经允许请勿转载。
THE END
二维码
共有 1 条评论