Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

The method of manually upgrading Centos7.4 to Centos7.7 in Linux

2025-01-21 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >

Share

Shulou(Shulou.com)06/01 Report--

In this article, Xiaobian introduces in detail the method of manual online upgrade of Centos7.4 to Centos7.7 in Linux, with detailed content, clear steps and proper handling of details. I hope that this article of "manual online upgrade of Centos7.4 in Linux to Centos7.7" can help you solve your doubts.

Kubernetes deployment requires a version of Centos7.5 or above, otherwise there will be problems such as kubelet cannot be started and harbor port access exception (at the same time, the kernel version should be upgraded to 4.4.x or above).

1) check the current centos system version and kernel version [root@k8s-vm01 ~] # cat / etc/redhat-releaseCentOS Linux release 7.4.1902 (Core) [root@k8s-vm01 ~] # uname-R2) back up the original CentOS-Base.repo [root@k8s-vm01 ~] # cd / etc/yum.repos.d/ [root@k8s-vm01 yum.repos.d] # cp CentOS-Base.repo CentOS-Base.repo_bak3) modify the yum source.

Make sure that the changed Yum source address can be accessed properly. Use the Yum source http://mirrors.aliyun.com/centos/7.7.1908 of Aliyun as follows. Make sure that manually opening this address is a valid address and that the content of the image Yum source exists completely.

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

Make sure that the following update operation does not report an error.

[root@k8s-vm01 yum.repos.d] # yum update-y5) restart the system [root@k8s-vm01 yum.repos.d] # init 6

Check the system version after reboot

[root@k8s-vm01 ~] # cat / etc/redhat-releaseCentOS Linux release 7.7.1908 (Core) read here, this article "how to manually upgrade Centos7.4 to Centos7.7 online in Linux" has been introduced. If you want to master the knowledge of this article, you still need to practice and use it before you can understand it. If you want to know more about related articles, please follow the industry information channel.

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Development

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report