zoukankan      html  css  js  c++  java
  • 给linode 替换操作系统核心

    1、Make sure your package repositories and installed packages are up to date by issuing the following command:

    yum update

    2、结束后看下当前的核心是啥:

    uname -a

    现在(我发帖日)的默认是:4.8.6-x86_64-linode78

    3、Issue the following command to install the default kernel for CentOS6:

    32-bit CentOS: :
    yum install kernel-PAE.i686
    
    64-bit CentOS: :
    yum install kernel.x86_64

    4、Create a file named /boot/grub/menu.lst with the following contents. Adjust the title, kernel, and initrd lines to reflect the actual file names found in the /boot/ directory.

    /boot/grub/menu.lst
    timeout 5
    title CentOS (2.6.32-431.23.3.el6.x86_64)
    root (hd0)
    kernel /boot/vmlinuz-2.6.32-431.23.3.el6.x86_64 root=/dev/xvda
    initrd /boot/initramfs-2.6.32-431.23.3.el6.x86_64.img

    然后,把里面 2.6.32-431.23.3.el6.x86_64 对应的全部替换为 /boot 目录下最新的对应的一批文件名。

    timeout 5
    title CentOS (3.10.0-514.2.2.el7.x86_64)
    root (hd0)
    kernel /boot/vmlinuz-3.10.0-514.2.2.el7.x86_64 root=/dev/sda
    initrd /boot/initramfs-3.10.0-514.2.2.el7.x86_64.img

    5、修改 linode 的Configuration Profile, 将核心改为 GRUB

    6、重启后 查看 uname -a , 核心已变。  o ye

    参考:https://www.linode.com/docs/tools-reference/custom-kernels-distros/run-a-distributionsupplied-kernel-with-pvgrub/

  • 相关阅读:
    #maven解决乱码问题
    #jquery隐藏和启用
    date类型时间比较大小
    xml<>编译
    Linux分区有损坏修复
    linux部署相关命令
    Java实现4位数吸血鬼数字算法
    Java冒泡算法及中位数算法
    DT梦工厂 第25课 Scala中curring实战详解
    DT梦工厂 第24讲 scala中sam转换实战详解
  • 原文地址:https://www.cnblogs.com/zhenfei/p/6200831.html
Copyright © 2011-2022 走看看