Centos 6.x 更新内核 2.6->4.13
最近搭建SS 感觉上网很慢,想起了网络加速,锐速没找到,知道到了Google 开源的 TCP BBR 拥塞控制算法,效果非常不错。
本帖记录升级内核的过程。
下载 更新内核
rpm --import https://www.elrepo.org/RPM-GPG-KEY-elrepo.org
rpm -Uvh http://www.elrepo.org/elrepo-release-6-8.el6.elrepo.noarch.rpm
yum --enablerepo=elrepo-kernel install kernel-ml -y
检查是否下载成功
rpm -qa | grep kernel
修改grub.这里不但要修改./etc/grub.conf 还要更改或者说是覆盖/boot/grub/grub.conf /boot/grub/menu.lst 所以,请提前备份。
#我的grub.conf /etc/grub.conf 替换boot/grub/grub.conf /boot/grub/menu.lst # grub.conf generated by anaconda # # Note that you do not have to rerun grub after making changes to this file # NOTICE: You do not have a /boot partition. This means that # all kernel and initrd paths are relative to /, eg. # root (hd0,0) # kernel /boot/vmlinuz-version ro root=/dev/vda1 # initrd /boot/initrd-[generic-]version.img #boot=/dev/vda default=0 timeout=5 splashimage=(hd0,0)/boot/grub/splash.xpm.gz hiddenmenu title CentOS (4.13.12-1.el6.elrepo.x86_64) root (hd0,0) kernel /boot/vmlinuz-4.13.12-1.el6.elrepo.x86_64 ro root=UUID=be979584-a005-4aa4-b9c2-47172ac5560a rd_NO_LUKS rd_NO_LVM LANG=en_US.UTF-8 crashkernel=auto consoleblank=0 rd_NO_MD SYSFONT=latarcyrheb-sun16 KEYBOARDTYPE=pc KEYTABLE=us rd_NO_DM initrd /boot/initramfs-4.13.12-1.el6.elrepo.x86_64.img title CentOS (2.6.32-696.10.2.el6.x86_64) root (hd0,0) kernel /boot/vmlinuz-2.6.32-696.10.2.el6.x86_64 ro root=UUID=be979584-a005-4aa4-b9c2-47172ac5560a rd_NO_LUKS rd_NO_LVM LANG=en_US.UTF-8 crashkernel=auto consoleblank=0 rd_NO_MD SYSFONT=latarcyrheb-sun16 KEYBOARDTYPE=pc KEYTABLE=us rd_NO_DM initrd /boot/initramfs-2.6.32-696.10.2.el6.x86_64.img title CentOS 6 (2.6.32-696.el6.x86_64) root (hd0,0) kernel /boot/vmlinuz-2.6.32-696.el6.x86_64 ro root=UUID=be979584-a005-4aa4-b9c2-47172ac5560a rd_NO_LUKS rd_NO_LVM LANG=en_US.UTF-8 crashkernel=auto consoleblank=0 rd_NO_MD SYSFONT=latarcyrheb-sun16 KEYBOARDTYPE=pc KEYTABLE=us rd_NO_DM initrd /boot/initramfs-2.6.32-696.el6.x86_64.img
#重启
reboot
国外的VPS很便宜还很方便,还能搭建SS,非常不错,推荐大家使用。https://www.vultr.com/?ref=7194436