久久r热视频,国产午夜精品一区二区三区视频,亚洲精品自拍偷拍,欧美日韩精品二区

您的位置:首頁技術文章
文章詳情頁

Linux系統 Centos7.4手動在線升級到Centos7.7

瀏覽:8日期:2023-03-07 14:40:04

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)

更多關于Centos手動升級的文章請查看下面的相關鏈接

標簽: Linux Apache
主站蜘蛛池模板: 双流县| 新源县| 汉寿县| 河西区| 石林| 南靖县| 连州市| 无锡市| 九寨沟县| 延长县| 镇平县| 东山县| 师宗县| 灵寿县| 应城市| 长武县| 鹰潭市| 天台县| 方山县| 栖霞市| 定州市| 庄河市| 新邵县| 荆门市| 贺兰县| 天柱县| 巴彦淖尔市| 从化市| 德昌县| 平遥县| 邹平县| 石景山区| 南通市| 松桃| 琼结县| 当阳市| 门源| 南平市| 宝应县| 科技| 克拉玛依市|