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

您的位置:首頁技術(shù)文章
文章詳情頁

Linux系統(tǒng) Centos7.4手動在線升級到Centos7.7

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

Kubernetes部署要求Centos7.5以上版本,否則會出現(xiàn)kubelet無法啟動、harbor端口訪問異常等問題(同時要求內(nèi)核版本要升級到4.4.x以上)。

1)查看當(dāng)前centos系統(tǒng)版本和內(nèi)核版本

[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源內(nèi)容完整存在。

[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)執(zhí)行更新yum

確保下面更新操作沒有報錯。

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

5)重啟系統(tǒng)

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

重啟后查看系統(tǒng)版本

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

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

標(biāo)簽: Linux Apache
主站蜘蛛池模板: 团风县| 荆州市| 光泽县| 宜春市| 崇仁县| 温宿县| 囊谦县| 临澧县| 波密县| 沾益县| 什邡市| 古田县| 峨眉山市| 尼勒克县| 乌拉特后旗| 田东县| 海门市| 绥芬河市| 惠水县| 阿合奇县| 班玛县| 特克斯县| 卓资县| 剑川县| 武邑县| 封丘县| 邳州市| 金寨县| 临泉县| 海原县| 泰州市| 永年县| 正镶白旗| 雅安市| 琼中| 图片| 五大连池市| 修文县| 荔浦县| 连南| 五大连池市|