|
此前将编译打包的内核发布,
现提供完整命令,按顺序一条一条执行即可
rpm --import https://gitee.com/yinghua8wu/Linux-NetSpeed/raw/master/lotserver/centos/RPM-GPG-KEY-elrepo.org >/dev/null 2>&1
yum install git -y >/dev/null 2>&1
git clone https://gitee.com/unmen/centoskernel.git /data >/dev/null 2>&1
cd /data/kernel;rpm -ivh kernel-3.10.0-327.el7.x86_64.rpm --force >/dev/null 2>&1
awk -F\' '$1=="menuentry " {print $2}' /etc/grub2.cfg
grub2-set-default 1
grub2-mkconfig -o /boot/grub2/grub.cfg
。
安装结束后重启(reboot)即可生效 |
|