1. view the system kernel version # uname-r2.6.18-92.el52, # wgetwgethttps: // kernel
1. view the system kernel version
# Uname-r
2.6.18-92. el5
2,# WgetWget https://www.kernel.org/pub/linux/kernel/v3.x/linux-3.13.tar.gzDownloadLinux-3.13.tar.gzKernel source code file
3,#Cd/usr/src/linux-3.13
4,#Make mrproperClear environment variables, that is, clear the configuration file
5,#Make menuconfigIn menu mode, select the kernel module to be compiled.
# Support for gcc and ncurses-devel is required. if not, install yum
6,#Make & make modules_install & make install
Or gradually execute:
# Make clean make sure everything is up to date.
# Make bzImage: generate the kernel file
#Make modules compilation module
#Make modules_install installation module
#Make install installation
#Mkinitrd/boot/initrd_2.6.18.img generates an image file based on the kernel version and specified parameters.
#Cp arch/x86/boot/bzImage/boot/vmlinuz-2.6.18
#Cp/usr/src/linux-2.6.18/System. map/boot/System. map-2.6.18
7,#Vi/boot/grub. conf # Start the system with a new kernel and restart the system;