zoukankan      html  css  js  c++  java
  • Linux 安装PAE内核

      客户软件是部署在32位的CentOS5服务器当中,CentOS5目前只能识别4G内存,需要安装PAE内核,让系统支持PAE物理地址扩展。
    1.安装PAE内核
    yum -y install kernel-PAE.i686
    2.修改grub启动内核参数
    vim /boot/grub/grub.conf

    # grub.conf generated by anaconda
    #
    # Note that you do not have to rerun grub after making changes to this file
    # NOTICE:  You have a /boot partition.  This means that
    #          all kernel and initrd paths are relative to /boot/, eg.
    #          root (hd0,0)
    #          kernel /vmlinuz-version ro root=/dev/VolGroup00/LogVol01
    #          initrd /initrd-version.img
    #boot=/dev/sda
    serial --unit=0 --speed=19200 --word=8 --parity=no --stop=1
    terminal --timeout=3 serial console
    default=0
    timeout=5
    splashimage=(hd0,0)/grub/splash.xpm.gz
    hiddenmenu
    title CentOS (2.6.18-398.el5PAE)        #新添加的PAE内核相关参数
        root (hd0,0)
        kernel /vmlinuz-2.6.18-398.el5PAE ro root=/dev/VolGroup00/LogVol01 console=tty0 console=ttyS0,19200n8
        initrd /initrd-2.6.18-398.el5PAE.img
    title CentOS (2.6.18-164.el5)			#旧的参数
        root (hd0,0)
        kernel /vmlinuz-2.6.18-164.el5 ro root=/dev/VolGroup00/LogVol01 console=tty0 console=ttyS0,19200n8
        initrd /initrd-2.6.18-164.el5.img
    

    3.重启服务器并在后台重新安装vmtools。
      配置完内核参数重启服务器后,会发现网卡会丢失,我们需要在后台对该服务器重新安装vmtools,当vmtools安装完成后,网卡信息可以直接更新,不需要再进行重启。
    4.可以直接查看当前服务器内存是否已经达到实际内存量。

  • 相关阅读:
    LED事件
    CSR8670按钮事件
    编译提示:warning: ISO C89 forbids mixed declarations and code
    C#使用Smtp,通过qqmail发送邮件
    编写VS的Snippet
    WPF的Clipboard.SetText()有问题
    HttpListenerRequest.ContentEncoding
    jQuery的Deferred对象教程
    visual studio如何修改c++项目的.net framework框架版本
    如何让Sqlite支持Entity Framework Code-First
  • 原文地址:https://www.cnblogs.com/Cherry-Linux/p/9108958.html
Copyright © 2011-2022 走看看