首页 > 系统相关 >Centos 6.x 更新内核 2.6->4.13

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

时间:2023-01-12 11:09:53浏览次数:44  
标签:4.13 grub Centos NO boot rd 64 el6 2.6


最近搭建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

标签:4.13,grub,Centos,NO,boot,rd,64,el6,2.6
From: https://blog.51cto.com/u_15939105/6003835

相关文章

  • Centos对指定IP放行Mysql
    放行指定IP地址firewall-cmd--permanent--add-rich-rule="rulefamily="ipv4"sourceaddress="45.76.8.212"  accept"firewall-cmd--reload 放行指定端口#添......
  • Centos7最小安装之网络配置
    1.获取权限命令行先进入​​su​​​(不进的话,每次输密码很烦2.查看网卡信息输入命令 ​​ls/etc/sysconfig/network-scripts​​可以看到有线网卡名称为​​ifcfg-enp3s0......
  • centos 安装Docker
    查看CentOS系统的内核版本Docker要求CentOS系统的内核版本高于3.10。通过uname-r命令查看你当前的内核版本[root@VM_211_6_centosnginx-1.6.2]#uname-r3.......
  • Nginx负载均衡(Centos7)
    需要实现的效果:centos服务器上安装nginx(监听80端口),另外安装两个tomcat,分别监听8080和8081当在浏览器中输入 http://192.168.17.129/edu/a.html 的时候,实现负载均衡,平......
  • centos7上如何禁用ipv6
    方法1编辑文件/etc/sysctl.conf,vi/etc/sysctl.conf添加下面的行:net.ipv6.conf.all.disable_ipv6=1net.ipv6.conf.default.disable_ipv6=1如果你想要为特定的网......
  • Centos7.6部署k8s v1.16.4高可用集群(主备模式)
    原文:https://zhuanlan.zhihu.com/p/465647563一、部署环境主机列表:共有7台服务器,3台controlplane,3台work,1台client。k8s版本:二、高可用架构本文采用kub......
  • CentOS 7.9 环境下构建 Python 3.9
    sudoyum-yupdatesudoyum-yinstallyum-utilssudoyum-builddep-ypython3curl-Ohttps://www.python.org/ftp/python/3.9.16/Python-3.9.16.tar.xzmd5sumPyt......
  • CentOS下redis安装部署
    1.安装依赖redis是由C语言开发,因此安装之前必须要确保服务器已经安装了gcc,可以通过如下命令查看机器是否安装:gcc-v如果没有安装则通过以下命令安装:yuminstall-ygcc......
  • 从SpringBoot 2.6.0升级到3.0.1之后,无法成功登录系统的问题及解决方法
    简单记录一下从SpringBoot2.6.0升级到3.0.1之后,无法成功登录系统的问题。目前的解决方法:在SecurityConfiguration配置中添加httpSecurity.securityContext().requireEx......
  • vagrant-centos7下使用root账号登录,配置ssh和sftp服务
    vagrant配置ssh和sftp服务,使用root登录  在前面的文章提到vagrant+virtualbox的安装,以及安装过程中可能出现的问题如何处理,但是有时候为了使用起来更加方便,我们想通......