Linux系統(tǒng)?Centos7.4手動(dòng)在線升級到Centos7.7
Kubernetes部署要求Centos7.5以上版本,否則會(huì)出現(xiàn)kubelet無法啟動(dòng)、harbor端口訪問異常等問題(同時(shí)要求內(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,要保證手動(dòng)打開這個(gè)地址是有效地址,且鏡像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
確保下面更新操作沒有報(bào)錯(cuò)。
[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手動(dòng)升級的文章請查看下面的相關(guān)鏈接
相關(guān)文章
詳解CentOS8更換yum源后出現(xiàn)同步倉庫緩存失敗的問題
這篇文章主要介紹了詳解CentOS8更換yum源后出現(xiàn)同步倉庫緩存失敗的問題,文中通過示例代碼介紹的非常詳細(xì),對大家的學(xué)習(xí)或者工作具有一定的參考學(xué)習(xí)價(jià)值,需要的朋友們下面隨著小編來一起學(xué)習(xí)學(xué)習(xí)吧2020-03-03改造ctrl+alt+del(默認(rèn)重啟)為一個(gè)信息搜集腳本的腳本
遠(yuǎn)程一個(gè)服務(wù)器總是出現(xiàn)網(wǎng)絡(luò)故障,因?yàn)椴环奖阕孖DC工程師做太詳細(xì)的操作,每次都是讓他按ctrl+alt+del重啟服務(wù)器,最后寫了這么一個(gè)腳本,實(shí)現(xiàn)的效果是2011-05-05linux: centos設(shè)置ip以及連接外網(wǎng)的方法
本篇文章主要介紹了linux: centos設(shè)置ip以及連接外網(wǎng)的方法,小編覺得挺不錯(cuò)的,現(xiàn)在分享給大家,也給大家做個(gè)參考。一起跟隨小編過來看看吧2017-02-02ubuntu系統(tǒng)下禁用utc時(shí)間的設(shè)置方法
這篇文章主要給大家介紹了在ubuntu系統(tǒng)下禁用utc時(shí)間的設(shè)置方法,需要的朋友可以參考下2017-05-05