First www.kernel.org to download the new kernel, such as when I practice this fourth major version of the latest longterm version: 4.19.47
Installation kit for foundation compiled
yum groupinstall "Development Tools" -y
Install additional components needed and download the new kernel source package
yum install -y elfutils-libelf-devel bc openssl-devel ncurses-devel ntpdate vim net-tools;cd /root/下载;ntpdate -u times.aliyun.com;curl -O https://cdn.kernel.org/pub/linux/kernel/v4.x/linux-4.19.47.tar.xz
tar -xf linux-4.19.47.tar.xz -C /usr/src/
cd /usr/src/linux-4.19.47/
A copy of the old config file
cp .config /boot/config-4.4.180-2.el7.elrepo.x86_64
SH -c 'yes "" | the make oldconfig'
j4 is said to use 4 cpu core parallel processing, should be in line with the real situation cpu maximum number of cores
make -j4 bzImage
make -j4 modules
make -j4 modules_install
make install
awk -F\' '$1=="menuentry " {print $2}' /etc/grub2.cfg
Grub2 new default kernel configuration key, restart
grub2-set-default 0 && init 6
Check the new kernel case
uname -r
yum groupinstall "Development Tools" -y
yum install -y elfutils-libelf-devel bc openssl-devel ncurses-devel ntpdate vim net-tools;cd /root/下载;ntpdate -u times.aliyun.com;curl -O https://cdn.kernel.org/pub/linux/kernel/v4.x/linux-4.19.47.tar.xz
tar -xf linux-4.19.47.tar.xz -C /usr/src/
cd /usr/src/linux-4.19.47/
cp /boot/config-4.4.180-2.el7.elrepo.x86_64 .config
sh -c 'yes "" | make oldconfig'
make -j4 bzImage
make -j4 modules
make -j4 modules_install
make install
awk -F\' '$1=="menuentry " {print $2}' /etc/grub2.cfg
grub2-set-default 0 && init 6
uname -r