The first method is upgraded to the latest version and is installed faster
1. Import KEY
rpm?--importhttps://www.elrepo.org/rpm-gpg-key-elrepo.org
2. Install Elrepo yum source
rpm-uvh http:// WWW.ELREPO.ORG/ELREPO-RELEASE-7.0-2.EL7.ELREPO.NOARCH.RPM
3. Install kernel
Yum--enablerepo=elrepo-kernel install Kernel-ml-devel kernel-ml-y
4. View setting default boot order
awk-f\ ' $1== ' menuentry ' {print $} '/etc/ Grub2.cfg, the display result should be the updated version of the kernel on top, execute the following command:
grub2-set-default 0
5. Reboot
reboot
The second method is compiled and installed for a longer period of time
https://www.kernel.org/Download the specified version https://www.kernel.org/pub/linux/kernel/v4.x/[root@node] #yum Groupinstall " Development Tools "-y [Root@node] #yum install-y elfutils-libelf-devel BC openssl-devel ncurses-devel wget ntpdat e vim net-tools [Root@node] #tar-xf linux-4.13.tar.gz-c/usr/src/[Root@node] #cd/usr/src/linux-4.13/[Root@node #cp/boot/config-3.10.0-327.el7.x86_64. config this is for the original version [Root@node] #sh-c ' Yes ' | Make Oldconfig ' [Root@node] #make-j20 bzimage [Root@node] #make-j20 modules [Root@node] #make-j20 Modules_install [root@n ODE] #make Install [root@node] #awk-f\ ' $1== ' menuentry ' {print $} '/etc/grub2.cfg [Root@node] #grub2-set-default 0 [root @node] #uname-A [Root@node] #reboot