编译升级
[root@localhost ~]# yum groupinstall "Development Tools" -y
[root@localhost ~]# yum install -y elfutils-libelf-devel bc openssl-devel ncurses-devel wget ntpdate vim net-tools
[root@localhost ~]# ntpdate -u times.aliyun.com
[root@localhost ~]# wget https://cdn.kernel.org/pub/linux/kernel/v5.x/linux-5.4.tar.xz
[root@localhost ~]# tar -xf linux-5.4.tar.xz -C /usr/src/
[root@localhost ~]# cd /usr/src/linux-5.4/
[root@localhost linux-5.4]# cp /boot/config-3.10.0-957.el7.x86_64 .config
[root@localhost linux-5.4]# sh -c 'yes "" | make oldconfig'
[root@localhost linux-5.4]# make -j8 bzImage
[root@localhost linux-5.4]# make -j8 modules
[root@localhost linux-5.4]# make -j8 modules_install
[root@localhost linux-5.4]# make install
[root@localhost linux-5.4]# awk -F\' '$1=="menuentry " {print $2}' /etc/grub2.cfg
[root@localhost linux-5.4]# grub2-set-default 0 && reboot
[root@localhost ~]# uname -a