k8s安装之Linux centos7升级内核到4.18以上
生活随笔
收集整理的这篇文章主要介绍了
k8s安装之Linux centos7升级内核到4.18以上
小编觉得挺不错的,现在分享给大家,帮大家做个参考.
rpm --import https://www.elrepo.org/RPM-GPG-KEY-elrepo.org
rpm -Uvh http://www.elrepo.org/elrepo-release-7.0-2.el7.elrepo.noarch.rpm
#查看最新版内核: yum --disablerepo="*" --enablerepo="elrepo-kernel" list available
#安装最新版:
yum --enablerepo=elrepo-kernel install kernel-ml kernel-ml-devel –y
#查看当前可用内核版本:
awk -F\' '$1=="menuentry " {print i++ " : " $2}' /etc/grub2.cfg
#选择最新内核版本,0代表查看当前可用内核版本列表的左侧索引号
grub2-set-default 0
#生成grub文件
grub2-mkconfig -o /boot/grub2/grub.cfg
#重启linux
reboot
参考链接:
https://blog.csdn.net/qq_26900081/article/details/109291999
总结
以上是生活随笔为你收集整理的k8s安装之Linux centos7升级内核到4.18以上的全部内容,希望文章能够帮你解决所遇到的问题。
- 上一篇: docker报错:OCI runtime
- 下一篇: Linux centos7安装nfs及服