1、上传一个高版本的系统镜像到服务器上,并挂载到目录
2、配置本地镜像的yum源
#mount -o loop /root/kernel/CentOS-7.7-x86_64-DVD-1908.iso /mnt/cdrom
#vim /etc/yum.repo.d/local.repo
[update-kernel]
name=CentOS
baseurl=file:///mnt/cdrom
enabled=1
gpgcheck=0
3、执行升级内核
#yum clean all && yum makecache
#yum update kernel
4、升级完后重启linux 系统
参考链接 :
centos7.6内核升级 : https://www.jianshu.com/p/ae230602168d