安装kubesphere时最好将Centos从7.2版本升级到7.6版本
安装kubesphere3.0.0时,按提示要求Centos的要求如下,但Centos7的有些版本的内存不满足要求,经过多次测试发现linux内核版本需要大于3.8,且3.10也有问题,最好是3.11及以上版本,所以最好将Centos升级到7.6版本。
1、配置yum源
mv /etc/yum.repos.d/centos7.repo /etc/yum.repos.d/centos7.repo.bak
开始配置
curl -o /etc/yum.repos.d/centos7.repo http://mirrors.aliyun.com/repo/Centos-7.repo
或
将以下内容替换了/etc/yum.repos.d/centos7.repo文件里面的内容
# CentOS-Base.repo
#
# The mirror system uses the connecting IP address of the client and the
# update status of each mirror to pick mirrors that are updated to and
# geographically close to the client. You should use this for CentOS updates
# unless you are manually picking other mirrors.
#
# If the mirrorlist= does not work for you, as a fall back you can try the
# remarked out baseurl= line instead.
#
#
[base]
name=CentOS-releasever/os/releasever/os/releasever/os/releasever - Updates - mirrors.aliyun.com
failovermethod=priority
baseurl=http://mirrors.aliyun.com/centos/basearch/
http://mirrors.aliyuncs.com/centos/basearch/
http://mirrors.cloud.aliyuncs.com/centos/basearch/
gpgcheck=1
gpgkey=http://mirrors.aliyun.com/centos/RPM-GPG-KEY-CentOS-7
#additional packages that may be useful
[extras]
name=CentOS-releasever/extras/releasever/extras/releasever/extras/releasever - Plus - mirrors.aliyun.com
failovermethod=priority
baseurl=http://mirrors.aliyun.com/centos/basearch/
http://mirrors.aliyuncs.com/centos/basearch/
http://mirrors.cloud.aliyuncs.com/centos/basearch/
gpgcheck=1
enabled=0
gpgkey=http://mirrors.aliyun.com/centos/RPM-GPG-KEY-CentOS-7
#contrib - packages by Centos Users
[contrib]
name=CentOS-releasever/contrib/releasever/contrib/releasever/contrib/$basearch/
gpgcheck=1
enabled=0
gpgkey=http://mirrors.aliyun.com/centos/RPM-GPG-KEY-CentOS-7
2、清yum缓存的指令
yum clean all
升级Centos版本的参考步骤如下:
3、 更新yum的指令
yum update
4、重启服务器
reboot
5、看Centos版本
cat /etc/redhat-release
————————————————
版权声明:本文为CSDN博主「风云琪文」的原创文章,遵循CC 4.0 BY-SA版权协议,转载请附上原文出处链接及本声明。
原文链接:https://blog.csdn.net/weixin_43991475/article/details/123358104
【推荐】国内首个AI IDE,深度理解中文开发场景,立即下载体验Trae
【推荐】编程新体验,更懂你的AI,立即体验豆包MarsCode编程助手
【推荐】抖音旗下AI助手豆包,你的智能百科全书,全免费不限次数
【推荐】轻量又高性能的 SSH 工具 IShell:AI 加持,快人一步
· 分享4款.NET开源、免费、实用的商城系统
· 全程不用写代码,我用AI程序员写了一个飞机大战
· MongoDB 8.0这个新功能碉堡了,比商业数据库还牛
· 白话解读 Dapr 1.15:你的「微服务管家」又秀新绝活了
· 上周热点回顾(2.24-3.2)