Centos 6.x 更新内核 2.6->4.13

Centos 6.x 更新内核 2.6->4.13

原创  2017年11月12日 13:11:06

最近搭建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
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值