wget https://mirrors.tuna.tsinghua.edu.cn/kernel/v4.x/linux-4.4.218.tar.gz
yum groupinstall "Development Tools" -y
yum install -y elfutils-libelf-devel bc openssl-devel ncurses-devel wget ntpdate vim net-tools
tar -zxf linux-4.4.218.tar.gz
cd linux-4.4.218
cp /boot/config-3.10.0-229.el7.x86_64 .config
sh -c 'yes "" | make oldconfig'
make -j30 bzImage
make -j30 modules
make -j30 modules_install
make install
cat /boot/grub2/grub.cfg |grep "menuentry "
awk -F\' '$1=="menuentry " {print $2}' /etc/grub2.cfg
grub2-set-default 'CentOS Linux (4.4.218) 7 (Core)'
grub2-editenv list
centos7 编译安装指定版本内核
最新推荐文章于 2023-07-21 08:00:00 发布