Linux中Centos7.4手动在线升级到Centos7.7的方法

发布时间:2022-02-07 15:14:08 作者:iii
来源:亿速云 阅读:417

本文小编为大家详细介绍“Linux中Centos7.4手动在线升级到Centos7.7的方法”,内容详细,步骤清晰,细节处理妥当,希望这篇“Linux中Centos7.4手动在线升级到Centos7.7的方法”文章能帮助大家解决疑惑,下面跟着小编的思路慢慢深入,一起来学习新知识吧。

Kubernetes部署要求Centos7.5以上版本,否则会出现kubelet无法启动、harbor端口访问异常等问题(同时要求内核版本要升级到4.4.x以上)。

1)查看当前centos系统版本和内核版本

[root@k8s-vm01 ~]# cat /etc/redhat-release
CentOS Linux release 7.4.1902 (Core)
  
[root@k8s-vm01 ~]# uname -r

2)备份原来的CentOS-Base.repo

[root@k8s-vm01 ~]# cd /etc/yum.repos.d/
[root@k8s-vm01 yum.repos.d]# cp CentOS-Base.repo CentOS-Base.repo_bak

3)修改yum源。

要保证更换的yum源地址可以正常访问。如下使用阿里云的yum源http://mirrors.aliyun.com/centos/7.7.1908,要保证手动打开这个地址是有效地址,且镜像yum源内容完整存在。

[root@k8s-vm01 yum.repos.d]# cat /etc/yum.repos.d/CentOS-Base.repo
[base]
name=CentOS-$releasever
enabled=1
failovermethod=priority
baseurl=http://mirrors.aliyun.com/centos/7.7.1908/os/$basearch/
gpgcheck=1
gpgkey=http://mirrors.cloud.aliyuncs.com/centos/RPM-GPG-KEY-CentOS-7
[updates]
name=CentOS-$releasever
enabled=1
failovermethod=priority
baseurl=http://mirrors.aliyun.com/centos/7.7.1908/updates/$basearch/
gpgcheck=1
gpgkey=http://mirrors.aliyun.com/centos/RPM-GPG-KEY-CentOS-7
[extras]
name=CentOS-$releasever
enabled=1
failovermethod=priority
baseurl=http://mirrors.aliyun.com/centos/7.7.1908/extras/$basearch/
gpgcheck=1
gpgkey=http://mirrors.aliyun.com/centos/RPM-GPG-KEY-CentOS-7

4)执行更新yum

确保下面更新操作没有报错。

[root@k8s-vm01 yum.repos.d]# yum update -y

5)重启系统

[root@k8s-vm01 yum.repos.d]# init 6

重启后查看系统版本

[root@k8s-vm01 ~]# cat /etc/redhat-release
CentOS Linux release 7.7.1908 (Core)

读到这里,这篇“Linux中Centos7.4手动在线升级到Centos7.7的方法”文章已经介绍完毕,想要掌握这篇文章的知识点还需要大家自己动手实践使用过才能领会,如果想了解更多相关内容的文章,欢迎关注亿速云行业资讯频道。

推荐阅读:
  1. Linux CentOS7.7 安装向导
  2. VC中的手动关联变量方法

免责声明:本站发布的内容(图片、视频和文字)以原创、转载和分享为主,文章观点不代表本网站立场,如果涉及侵权请联系站长邮箱:is@yisu.com进行举报,并提供相关证据,一经查实,将立刻删除涉嫌侵权内容。

centos linux

上一篇:nginx怎么安装配置

下一篇:K8S怎么部署Kafka界面管理工具

相关阅读

您好,登录后才能下订单哦!

密码登录
登录注册
其他方式登录
点击 登录注册 即表示同意《亿速云用户服务条款》