yum install -y bc wget -c https://cdn.kernel.org/pub/linux/kernel/v3.x/linux-3.18.22.tar.gz tar -xzf linux-3.18.22.tar.gz -C /usr/src/ cd /usr/src/linux-3.18.22/ cp /boot/config-3.10.0-229.el7.x86_64 .config sh -c ‘yes "" | make oldconfig‘ make -j4 bzImage make -j4 modules make -j4 modules_install make install reboot
原文地址:http://nbaiwan.blog.51cto.com/6286161/1702211