Linux系統(tǒng)?Centos7.4手動在線升級到Centos7.7
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)鏈接
版權(quán)聲明:本站文章來源標(biāo)注為YINGSOO的內(nèi)容版權(quán)均為本站所有,歡迎引用、轉(zhuǎn)載,請保持原文完整并注明來源及原文鏈接。禁止復(fù)制或仿造本網(wǎng)站,禁止在非www.sddonglingsh.com所屬的服務(wù)器上建立鏡像,否則將依法追究法律責(zé)任。本站部分內(nèi)容來源于網(wǎng)友推薦、互聯(lián)網(wǎng)收集整理而來,僅供學(xué)習(xí)參考,不代表本站立場,如有內(nèi)容涉嫌侵權(quán),請聯(lián)系alex-e#qq.com處理。