zoukankan      html  css  js  c++  java
  • 查看linux服务器内存信息

    查看服务器内存信息

    dmidecode|grep -P -A5 "Memorys+Device"|grep Size

    [root@localhost home]# dmidecode|grep -P -A5 "Memorys+Device"|grep Size
    Size: 16384 MB
    Size: No Module Installed
    Size: No Module Installed
    Size: 16384 MB
    Size: No Module Installed
    Size: No Module Installed
    Size: No Module Installed
    Size: No Module Installed
    Size: No Module Installed
    Size: No Module Installed
    Size: No Module Installed
    Size: No Module Installed
    Size: No Module Installed
    Size: No Module Installed
    Size: No Module Installed
    Size: No Module Installed
    Size: No Module Installed
    Size: No Module Installed
    Size: No Module Installed
    Size: No Module Installed
    Size: 16384 MB
    Size: No Module Installed
    Size: No Module Installed
    Size: 16384 MB

    查看共有多少个槽位
    [root@localhost home]# dmidecode|grep -P -A5 "Memorys+Device"|grep Size|wc -l
    24

    查看共插了多少根内存条

    [root@oraservbjdb01 ~]# dmidecode|grep -P -A5 "Memorys+Device"|grep Size|awk -F: 'BEGIN{count=0}$2~/16384 MB/{count++}END{print "count="count}'
    count=32

  • 相关阅读:
    返回图片宽高比
    3.1/3.2图片上传类
    php获取图片的拍摄及其他数据信息
    上传类
    pathinfo()的用法
    上传并压缩图片
    将数组转化为键值对
    css3判断某个li标签
    禁止滚动条/启用滚动条
    Keepalived + haproxy双机高可用方案
  • 原文地址:https://www.cnblogs.com/paul8339/p/6893488.html
Copyright © 2011-2022 走看看