• LINUX查看服务器硬件配置(转)


    LINUX查看硬件配置

    1.      查看所有硬件的型号

    Cmd代码  收藏代码
    1. dmidecode | more  

      

    结果代码  收藏代码
    1. # dmidecode 2.2  
    2.   
    3. SMBIOS 2.5 present.  
    4.   
    5. 170 structures occupying 4593 bytes.  
    6.   
    7. Table at 0xCFEFE000.  
    8.   
    9. Handle 0x0000  
    10.   
    11.         DMI type 0, 24 bytes.  
    12.   
    13.         BIOS Information  
    14.   
    15.                 Vendor: HP  
    16.   
    17.                 Version: P61  
    18.   
    19.                 Release Date: 12/07/2007  
    20.   
    21.                 Address: 0xF0000  
    22.   
    23.                 Runtime Size: 64 kB  
    24.   
    25.                 ROM Size: 4096 kB  
    26.   
    27.                 Characteristics:  
    28.   
    29.                         PCI is supported  
    30.   
    31.                         PNP is supported  
    32.   
    33.                         BIOS is upgradeable  
    34.   
    35.                         BIOS shadowing is allowed  
    36.   
    37.                         ESCD support is available  
    38.   
    39.                         Boot from CD is supported  
    40.   
    41.                         Selectable boot is supported  
    42.   
    43.                         EDD is supported  
    44.   
    45. ……….  
    46.   
    47. ……….  

     2.      查看memory info

    Cmd代码  收藏代码
    1. cat /proc/meminfo | more  
    结果代码  收藏代码
    1. MemTotal:     12469500 kB  
    2.   
    3. MemFree:      10620264 kB  
    4.   
    5. Buffers:        121284 kB  
    6.   
    7. Cached:        1514636 kB  
    8.   
    9. SwapCached:          0 kB  
    10.   
    11. Active:         622312 kB  
    12.   
    13. Inactive:      1117020 kB  
    14.   
    15. HighTotal:    11662616 kB  
    16.   
    17. HighFree:     10018432 kB  
    18.   
    19. LowTotal:       806884 kB  
    20.   
    21. LowFree:        601832 kB  
    22.   
    23. SwapTotal:    12289716 kB  
    24.   
    25. SwapFree:     12289716 kB  
    26.   
    27. Dirty:             560 kB  
    28.   
    29. Writeback:           0 kB  
    30.   
    31. Mapped:         300144 kB  
    32.   
    33. Slab:            68728 kB  
    34.   
    35. CommitLimit:  18524464 kB  
    36.   
    37. Committed_AS:  3062652 kB  
    38.   
    39. PageTables:      12916 kB  
    40.   
    41. VmallocTotal:   106488 kB  
    42.   
    43. VmallocUsed:      8760 kB  
    44.   
    45. VmallocChunk:    97268 kB  
    46.   
    47. HugePages_Total:     0  
    48.   
    49. HugePages_Free:      0  
    50.   
    51. Hugepagesize:     2048 kB  

     3.      查看CPU info

    Cmd代码  收藏代码
    1. cat /proc/cpuinfo  
    结果代码  收藏代码
    1. processor       : 0  
    2.   
    3. vendor_id       : GenuineIntel  
    4.   
    5. cpu family      : 6  
    6.   
    7. model           : 15  
    8.   
    9. model name      : Intel(R) Xeon(R) CPU           E7320  @ 2.13GHz  
    10.   
    11. stepping        : 11  
    12.   
    13. cpu MHz         : 2133.302  
    14.   
    15. cache size      : 2048 KB  
    16.   
    17. physical id     : 0  
    18.   
    19. siblings        : 4  
    20.   
    21. core id         : 0  
    22.   
    23. cpu cores       : 4  
    24.   
    25. fdiv_bug        : no  
    26.   
    27. hlt_bug         : no  
    28.   
    29. f00f_bug        : no  
    30.   
    31. coma_bug        : no  
    32.   
    33. fpu             : yes  
    34.   
    35. fpu_exception   : yes  
    36.   
    37. cpuid level     : 10  
    38.   
    39. wp              : yes  
    40.   
    41. flags           : fpu vme de pse tsc msr pae mce cx8 apic mtrr pge mca cmov pat  
    1、查看cpu信息:/proc/cpuinfo
    2、查看内存信息:/prco/meminfo
    3、查看服务器版本信息:cat /etc/issue
    4、服务器系统位数:uname -a
    5、网卡信息:ifconfig
    5、查看防火墙配置:cat /etc/sysconfig/iptables
    6、服务器编码格式:cat /etc/sysconfig/i18n 
  • 相关阅读:
    Eclipse新建工程编译R cannot be resolved to a variable问题
    Eclipse如何生成jar包
    Springmvc+Shiro实战
    封装springmvc处理ajax请求结果
    jquery操作cookie
    探讨jsp相对路径和绝对路径
    spring集成quartz
    Spring-Task
    bootstrap table分页(前后端两种方式实现)
    jquery file upload示例
  • 原文地址:https://www.cnblogs.com/lygsbbs/p/4414009.html
Copyright © 2020-2023  润新知