CentOS 7
- 下载更换内核,最新内核查看这里
rpm --import https://www.elrepo.org/RPM-GPG-KEY-elrepo.org
To install ELRepo for RHEL-8 or CentOS-8:
yum install https://www.elrepo.org/elrepo-release-8.el8.elrepo.noarch.rpm
To install ELRepo for RHEL-7, SL-7 or CentOS-7:
yum install https://www.elrepo.org/elrepo-release-7.el7.elrepo.noarch.rpm
To install ELRepo for RHEL-6, SL-6 or CentOS-6:
yum install https://www.elrepo.org/elrepo-release-6.el6.elrepo.noarch.rpm
yum --enablerepo=elrepo-kernel install kernel-ml -y
- 查看内核是否安装成功
rpm -qa | grep kernel
- 删除旧内核(可选)
rpm -ev 旧内核
- 更新 grub 系统引导文件并重启
egrep ^menuentry /etc/grub2.cfg | cut -f 2 -d \'
grub2-set-default 0 # default 0 表示第一个内核设置为默认运行, 选择最新内核就对了
reboot
发表评论
您必须在 登录 后才能评论.