To improve the transmission efficiency of TCP, we recommend that you customize the CentOS kernel to improve the transmission efficiency. The following describes how to obtain the source code and compile the kernel.
1. Run the [root] user to install the following components before Compilation:
Su root
Yum-y groupinstall "Development Tools"
Yum-y install ncurses-devel qt-devel
Yum-y install rpm-build redhat-rpm-config asciidoc hmaccalc perl-ExtUtils-Embed xmlto
Yum-y install audit-libs-devel binutils-devel elfutils-libelf-devel
Yum-y install newt-devel python-devel zlib-devel
2. Install the source code component of the kernel. [note] You must use the [non-root] user to execute the command.
Rpm-I http://vault.centos.org/6.5/updates/Source/SPackages/kernel-2.6.32-431.11.2.el6.src.rpm 2> & 1 | grep-v mock
Attachment: kernel-2.6.32-431.11.2.el6.src.rpm source abroad, download speed may be slow, you can use BGP machine room or VPN acceleration.
Source Code address:
Http://vault.centos.org/6.5/ OS /Source/SPackages/
Http://vault.centos.org/6.5/updates/Source/SPackages/
3. Extract and prepare the source code file [note] You must use the [non-root] user to execute the command
Cd ~ /Rpmbuild/SPECS
Rpmbuild-bp -- target = $ (uname-m) kernel. spec
Note: The Source Code directory tree of the kernel can be found in ~ /Rpmbuild/BUILD/kernel */linux */found in this directory.
4. Compile the new kernel [note] the [non-root] user must be used to execute the command
Cd ~ /Rpmbuild/SPECS
Rpmbuild-bb -- with baseonly -- without debug -- without debuginfo -- target = 'uname-m' kernel. spec 2> build-err.log | tee build-out.log
Note: This process may take about 90 minutes. Please wait.
Attachment: the rpm file of the custom kernel can be found in ~ /Rpmbuild/RPMS/'uname-m'/directory.
5. Install the new kernel [note] You must use the [root] user to execute the command
Su root
Rpm-ivh kernel-*. rpm
6. Verify the restart and check the kernel version.
Uname-
References:
[1] CentOS Wiki http://wiki.centos.org/zh/HowTos/Custom_Kernel#head-981e27f326384c58516d3b2051b225526bb0a50a