首页 > 系统教程 正文

ubuntu升级openssl最新版(ubuntu升级openssh最新版)

时间:2023-12-24 12:07:27 阅读:64016 作者:3801

给大家分享一下Ubuntu18.04如何更新openssl版本,ubuntu18.04内置了1.1.0g版本的openssl,详细请看下文介绍。

安装telnet

(防止在升级的过程中,远程无法连接)

# apt update
# apt install openbsd-inetd telnetd

ubuntu升级openssl最新版(ubuntu升级openssh最新版)

查看telnet 服务,并使用telnet登录系统。

# netstat -a|grep telnet

ubuntu升级openssl最新版(ubuntu升级openssh最新版)

ubuntu升级openssl最新版(ubuntu升级openssh最新版)

安装编译环境

1.安装make

# apt install make
# apt install make-guile

ubuntu升级openssl最新版(ubuntu升级openssh最新版)

安装zlib

# atp install zlib*

ubuntu升级openssl最新版(ubuntu升级openssh最新版)

安装gcc

# apt install gcc

ubuntu升级openssl最新版(ubuntu升级openssh最新版)

新建目录,上传安装包

ubuntu升级openssl最新版(ubuntu升级openssh最新版)

备份openssl文件

# mv /usr/bin/openssl /usr/bin/openssl.bak

ubuntu升级openssl最新版(ubuntu升级openssh最新版)

解压缩安装包

# tar -zxvf openssl-1.1.1t.tar.gz

ubuntu升级openssl最新版(ubuntu升级openssh最新版)

执行配置脚本

# cd openssl-1.1.1t
# ./config --prefix=/usr/local/openssl --shared zlib

ubuntu升级openssl最新版(ubuntu升级openssh最新版)

执行make编译,并安装

#make && make install

ubuntu升级openssl最新版(ubuntu升级openssh最新版)

ubuntu升级openssl最新版(ubuntu升级openssh最新版)

新增并编辑openssl配置文件

# vi /etc/ld.so.conf.d/ssl.conf
输入内容:/usr/local/openssl/lib

ubuntu升级openssl最新版(ubuntu升级openssh最新版)

ubuntu升级openssl最新版(ubuntu升级openssh最新版)

更新库文件,并创建openssl链接文件

# ldconfig -v
# ln /usr/local/openssl/bin/openssl /usr/bin/openssl

ubuntu升级openssl最新版(ubuntu升级openssh最新版)

ubuntu升级openssl最新版(ubuntu升级openssh最新版)

查看openssl版本,成功升级为1.1.1t版本。

# openssl version

ubuntu升级openssl最新版(ubuntu升级openssh最新版)

以上就是ubuntu升级openssl的教程,希望大家喜欢,请继续关注。

版权声明:该文观点仅代表作者本人。处理文章:请发送邮件至 三1五14八八95#扣扣.com 举报,一经查实,本站将立刻删除。