Upgrade CentOS kernel in four steps

Source: Internet
Author: User
Article Title: Upgrade the CentOS kernel in four steps. Linux is a technology channel of the IT lab in China. Including desktop applications, Linux system management, kernel research, embedded systems, open-source and other basic categories. to test some software, kernel 2.6.30 or above is required, and CentOS 5.5 is installed, the kernel is 2.6.18-194. el5. the upgrade is still smooth. The specific process is as follows:

1. Download The linux-2.6.30 kernel package to the/usr/src directory

Networking support-> networking options-> network packet filtering framework (netfilter)
(1). core netfilter configuration
"Netfilter connection tracking support"-m state-related modules depend on it. If this parameter is not selected, no.
B. Compile netbios name service protocal support (new) into a module. Otherwise, an error will occur when iptables is upgraded later.
"Netfilter Xtables support (required for ip_tables)" in the C check box )"
(2). IP: Netfilter Configuration
A compiles "IPv4 connection tracking support (require for NAT)" into A module.
IP tables support (required for filtering/masq/NAT) in "B ).
C. Compile "MASQUERADE target support" and "REDIRECT target support" under "Full NAT" into a module.
(3) other modules can be selected based on their own needs. If not, refer to the Kernel configuration manual.
Make clean make sure everything is up to date.
Make bzImage to generate the Kernel File
Make modules compilation Module
Make modules_install installation Module
Make install Installation
Mkinitrd/boot/initrd_2.6.30.img 2.6.30 generate an image file based on the kernel version and specified parameters
Cp arch/x86/boot/bzImage/boot/vmlinuz-2.6.30
Cp/usr/src/linux-2.6.30/System. map/boot/System. map-2.6.30
  2. Add the following 2.6.30 information in/etc/grub. conf and change default = 1 to default = 0.

[1] [2] Next page

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.