RedHat Enterprise Linux 5.8 升级openssl

简介:

RedHat Enterprise Linux 5.8升级openssl,遇到以下问题,做下标记:


由于之前安装RedHat Enterprise Linux 5.8 时候只安装了服务器环境,没有安装开发环境导致服务器无法编译代码

只好重新安装 gcc 了。

首先想到的是 用 yum 来安装

运行: yum -y install gcc gcc-c++

提示 this system is not registered with RHN...

您的系统没有在红帽网络上注册...


挂载DVD镜像:

mount /dev/cdrom /mnt   *将光驱挂在到 mnt目录

cd /mnt/Server   *进入光驱目录 注意大小写!

 按顺序依次执行安装:
[root@rhel5 Server]# rpm -ivh kernel-headers-2.6.18-53.el5.i386.rpm 
[root@rhel5 Server]# rpm -ivh glibc-headers-2.5-18.i386.rpm 
[root@rhel5 Server]# rpm -ivh glibc-devel-2.5-18.i386.rpm 
[root@rhel5 Server]# rpm -ivh libgomp-4.1.2-14.el5.i386.rpm 
[root@rhel5 Server]# rpm -ivh gcc-4.1.2-14.el5.i386.rpm 
[root@rhel5 Server]# rpm -ivh libstdc++-devel-4.1.2-14.el5.i386.rpm 
[root@rhel5 Server]# rpm -ivh gcc-c++-4.1.2-14.el5.i386.rpm  

 

 安装完毕!

  rpm -q gcc

  提示:

  gcc-4.1.1-52.el5

  安装成功!


默认perl版本非常低,不能满足openssl升级条件,需升级perl

1
2
3
4
5
6
7
8
9
10
11
# wget 
#下载完以后解压安装
# tar zxvf perl-5.22.1.tar.gz
#cd perl-5.22.1 #./Configure -des -Dprefix=/usr/local/perl 
参数-Dprefix指定安装目录为 /usr/local/perl 
#make 
#make install
#接下来替换系统原有的perl,有最新的了咱就用嘛.
#mv /usr/bin/perl /usr/bin/perl.bak
#ln -s /usr/local/perl/bin/perl /usr/bin/perl
#perl -v


参考资料:

Zlib官网各版本

https://zlib.net/fossils/

Redhat 6.7 x64升级SSH到OpenSSH_7.4p1完整文档

http://www.cnblogs.com/xshrim/p/6472679.html




本文转自 boy461205160 51CTO博客,原文链接:http://blog.51cto.com/461205160/1954589
相关文章
|
10月前
|
SQL Linux 调度
Timeplus Enterprise 3.0 (Linux, macOS) - 流处理平台
Timeplus Enterprise 3.0 (Linux, macOS) - 流处理平台
216 2
Timeplus Enterprise 3.0 (Linux, macOS) - 流处理平台
|
10月前
|
数据管理 Linux iOS开发
Splunk Enterprise 9.4.5 (macOS, Linux, Windows) - 机器数据管理和分析
Splunk Enterprise 9.4.5 (macOS, Linux, Windows) - 机器数据管理和分析
352 0
|
Unix Linux iOS开发
Splunk Enterprise 10.0.0 (macOS, Linux, Windows) - 搜索、分析和可视化,数据全面洞察平台
Splunk Enterprise 10.0.0 (macOS, Linux, Windows) - 搜索、分析和可视化,数据全面洞察平台
326 0
|
人工智能 安全 Linux
Red Hat Enterprise Linux 10 正式版发布 - 红帽企业 Linux (RHEL)
Red Hat Enterprise Linux 10 正式版发布 - 红帽企业 Linux (RHEL)
1711 0
Red Hat Enterprise Linux 10 正式版发布 - 红帽企业 Linux (RHEL)
|
安全 Linux 数据安全/隐私保护
Red Hat Enterprise Linux 9.6 (x86_64, aarch64) - 红帽企业 Linux (RHEL)
Red Hat Enterprise Linux 9.6 (x86_64, aarch64) - 红帽企业 Linux (RHEL)
1524 36
Red Hat Enterprise Linux 9.6 (x86_64, aarch64) - 红帽企业 Linux (RHEL)
|
安全 算法 Ubuntu
Linux(openssl)环境:编程控制让证书自签的技巧。
总结:在Linux环境中,OpenSSL是一个非常实用的工具,可以帮助我们轻松地生成自签名证书。通过上述三个简单步骤,即可为内部网络、测试环境或开发环境创建自签名证书。但在公共访问场景下,建议购买经过权威认证机构签发的证书,以避免安全警告。
727 13
|
Linux iOS开发 MacOS
Gitea Enterprise 23.4.0 (Linux, macOS, Windows) - 本地部署的企业级 Git 服务
Gitea Enterprise 23.4.0 (Linux, macOS, Windows) - 本地部署的企业级 Git 服务
498 0
Gitea Enterprise 23.4.0 (Linux, macOS, Windows) - 本地部署的企业级 Git 服务
|
安全 Linux 编译器
BigCloud Enterprise Linux 8和Rocky Linux 8升级OpenSSH步骤
本文介绍了在BigCloud Enterprise Linux 8.2/8.6和Rocky Linux 8.10上升级OpenSSH的详细步骤。首先配置Telnet服务和GCC编译器以确保远程登录安全,接着备份旧版OpenSSH并下载、编译、安装最新版本(如9.9p1)。然后创建新的sshd系统服务配置文件,调整配置并启动服务。最后验证升级效果,关闭不必要的Telnet服务,并处理可能的防火墙和SELinux问题。通过这些步骤可有效修复低版本OpenSSH带来的高危漏洞。
1066 13
|
9月前
|
存储 安全 Linux
Linux卡在emergency mode怎么办?xfs_repair 命令轻松解决
Linux虚拟机遇紧急模式?别慌!多因磁盘挂载失败。本文教你通过日志定位问题,用`xfs_repair`等工具修复文件系统,三步快速恢复。掌握查日志、修磁盘、验重启,轻松应对紧急模式,保障系统稳定运行。
1522 2