CentOS 6.X upgrades Kernel to facilitate the installation of Docker
Reference: http://elrepo.org/tiki/tiki-index.php
rpm --import https://www.elrepo.org/RPM-GPG-KEY-elrepo.org
For more information about the GPG key used by the ELRepo project, please refer to https://www.elrepo.org/tiki/key If your system has secure boot enabled, please refer to the SecureBootKey page for more information.
rpm -Uvh http://www.elrepo.org/elrepo-release-7.0-3.el7.elrepo.noarch.rpm(external link)
rpm -Uvh http://www.elrepo.org/elrepo-release-6-8.el6.elrepo.noarch.rpm
It should be noted here that there are two kernel options in ELRepo, one is kernel-lt (long-term support version), the other is kernel-ml (the latest version of the mainline), using the long-term support version (kernel-lt), which is more stable
# kernel-lt
yum --enablerepo=elrepo-kernel install kernel-lt -y
or
# kernel-ml
yum --enablerepo=elrepo-kernel install kernel-ml -y
vim /etc/grub.conf
According to the location of the kernel after installation, modify the value of default, which is generally modified to 0, because default starts from 0, and generally the newly installed kernel is in the first position, so set default=0
After all operations are completed, restart the host, and execute uname -r after restarting to check the kernel version number
[ root@db-slave ~]# uname -r
4.14.3- 1. el6.elrepo.x86_64
Recommended Posts