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.可以直接查看当前服务器内存是否已经达到实际内存量。

  • 相关阅读:
    码农的自我修养
    工程化编程实战callback接口学习笔记
    eval代码执行漏洞
    CTF_show WEB1通过order排序读取数据库数据(特定场景)
    Python的ico_hash计算脚本
    FOFA网页爬取最新 批量版本
    利用Python爬取fofa网页端数据
    利用Python进行Payload分离免杀
    [Gym101653Q]Number Game
    傅里叶变换
  • 原文地址:https://www.cnblogs.com/Cherry-Linux/p/9108958.html
Copyright © 2011-2022 走看看