Record of how to upgrade Linux CentOS6 64-bit 3.1 kernel

888u

Last update at :2024-06-13,Edit by888u

Sometimes, due to the needs of certain projects and software configurations, we need to increase the kernel version of the default Linux system to install the required software (for example, docker requires kernel version 3.10 or above). For example, the current Snail kernel default is 2.6.32-358.6.1.el6.x86_64 in the CentOS6 64bit environment. Here we need to upgrade it to the latest stable version or upgrade to the specified kernel version.

In this article, Snail will record how to quickly upgrade to the latest stable version through the yum command, and how to upgrade the specified version of the centos kernel, but it is worth noting. Because it is modifying the kernel, it cannot ensure 100% compatibility with all system versions, so we need to be cautious when using it in actual existing project environments, as it may cause problems such as being unable to start. In this article, Snail is executed in an empty Linux system, so there is no need to worry about system problems. If it doesn't work, I will reinstall it.

First, check the current CentOS kernel version

uname -r

Second, quickly upgrade to the latest stable version of the kernel

1. Import KEY

rpm –import https://www.elrepo.org/RPM-GPG-KEY-elrepo.org

2. Install ELRepo

rpm -Uvh http://www.elrepo.org/elrepo-release-6-6.el6.elrepo.noarch.rpm

3. Install the kernel

yum –enablerepo=elrepo-kernel install kernel-lt -y

4. Modify the Grub boot sequence

vi /etc/grub.conf

Modify default=0, then save and exit.

5. Restart and check the kernel

In this way we can see that the current kernel has changed from the original 2.6 to 3.1.

To summarize, the above Snail (laozuo.org) upgraded the original centos6 64-bit system's default 2.6 kernel to the 3.1 kernel. No adverse reactions have been found so far, and it is normal after restarting the server. If our users must back up the data before upgrading or deploy the environment after upgrading the new environment, don't mess it up.

Recommended site searches: domain name correction system, free virtual host application, IP reverse check website server rental domain name purchase, Western Digital registration, personal free space, what is a domain name server, same IP website query, domain name information query,

p>

Record of how to upgrade Linux CentOS6 64-bit 3.1 kernel

All copyrights belong to 888u unless special state
取消
微信二维码
微信二维码
支付宝二维码