How does CentOS update the kernel? CentOS 5.5 update kernel to 2.6.32.71 tutorial

Time:2020-10-24

Upgrade system kernel to improve performance

1. Enter the user name and password to login the systemUse the WGet command to get the required kernel.

2. After downloading the file to the local, unzip the file

3. Move the file to the relevant directory and switch to the relevant directory

4. Configure the kernel parameters and select the modules you need;

5. Compile and install the kernel:

Copy content to clipboard

  1. [[email protected] linux-2.6.32.70]# make[[email protected] linux-2.6.32.70]# make modules[[email protected] linux-2.6.32.70]# make modules_install[[email protected] linux-2.6.32.70]# make install  

6. Modify the relevant configuration file to start with a new kernel; mainly change the line defanlt = 0.

7. Copy the new kernel configuration file to the / boot directory, restart and verify the kernel version.

Copy content to clipboard

  1. [[email protected] linux-2.6.32.70]# cp /usr/src/linux-2.6.32.71/.config  /boot/config-2.6.32.70   
  2.   
  3. [[email protected] linux-2.6.32.70]# reboot   
  4.   
  5. [[email protected] linux-2.6.32.70]# uname -r  

matters needing attention:

1. When configuring the kernel (make menuconfig) parameters, pay attention to loading all the hard disk drive modules;

2. After executing make menuconfig, modify / usr / SRC / linux-2.6.32.71 /. Config, and change the “config” to “confi”_ SYSFS_ DEPRECATED_ Change V2 is not set to config_ SYSFS_ DEPRECATED_ V2 = y, then compile the kernel

Related recommendations:

How to cancel lock screen in CentOS 7

How to change the name of network card to eth0 in newly installed CentOS 7 system?

Two kinds of tutorials for IP configuration in CentOS 6.7 system