zoukankan      html  css  js  c++  java
  • CentOS7服务器查看相关配置命令

    CPU个数:
    (base) [jiangshan@localhost ~]$ grep 'physical id' /proc/cpuinfo | sort -u | wc -l
    2
    CPU核数:
    (base) [jiangshan@localhost ~]$ cat /proc/cpuinfo | grep "cpu cores" | uniq
    cpu cores : 6
    CPU型号:
    (base) [jiangshan@localhost ~]$ cat /proc/cpuinfo | grep 'model name' |uniq
    model name : Intel(R) Xeon(R) CPU E5645 @ 2.40GHz
    cpu内核频率:
    (base) [jiangshan@localhost ~]$ cat /proc/cpuinfo |grep MHz|uniq
    cpu MHz : 1600.000
    cpu MHz : 2400.000
    cpu MHz : 2267.000
    cpu MHz : 1600.000
    查看CPU统计信息:
    (base) [jiangshan@localhost ~]$ lscpu
    Architecture: x86_64
    CPU op-mode(s): 32-bit, 64-bit
    CPU(s): 24
    On-line CPU(s) list: 0-23
    Thread(s) per core: 2
    Core(s) per socket: 6
    Socket(s): 2
    NUMA node(s): 2
    CPU family: 6
    Model: 44
    Model name: Intel(R) Xeon(R) CPU E5645 @ 2.40GHz
    Stepping: 2
    CPU MHz: 1600.000
    CPU max MHz: 2400.0000
    CPU min MHz: 1600.0000
    BogoMIPS: 4800.63
    Virtualization: VT-x
    L1d cache: 32K
    L1i cache: 32K
    L2 cache: 256K
    L3 cache: 12288K
    NUMA node0 CPU(s): 0-5,12-17
    NUMA node1 CPU(s): 6-11,18-23
    内存总数:
    (base) [jiangshan@localhost ~]$ cat /proc/meminfo | grep MemTotal
    MemTotal: 65796920 kB//62.748GB
    内核版本:
    (base) [jiangshan@localhost ~]$ cat /proc/version
    Linux version 3.10.0-957.el7.x86_64 (mockbuild@kbuilder.bsys.centos.org) (gcc version 4.8.5 20150623 (Red Hat 4.8.5-36) (GCC) )
    操作系统内核信息:
    (base) [root@localhost jiangshan]# uname -a
    Linux localhost.localdomain 3.10.0-957.el7.x86_64 #1 SMP Thu Nov 8 23:39:32 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux
    查看显卡;
    (base) [jiangshan@localhost ~]$ lspci | grep -i vga
    02:00.0 VGA compatible controller: Matrox Electronics Systems Ltd. MGA G200e [Pilot] ServerEngines (SEP1) (rev 02)
    机器型号:
    (base) [root@localhost jiangshan]# dmidecode | grep "Product Name"
    Product Name: ProLiant DL170e G6
    Product Name: ProLiant DL170e G6
    主板型号:
    (base) [root@localhost jiangshan]# dmidecode |grep -A16 "System Information$"
    System Information
    Manufacturer: HP
    Product Name: ProLiant DL170e G6
    Version:
    Serial Number: SGH134XDP9
    UUID: 30393036-3539-4753-4831-333458445039
    Wake-up Type: Power Switch
    SKU Number: 609095-B21
    Family: ProLiant DL2000 Multinode Platform
    Handle 0x0002, DMI type 2, 15 bytes
    Base Board Information
    Manufacturer: HP
    Product Name: ProLiant DL170e G6
    Version:
    Serial Number:
    Asset Tag:
    磁盘信息:
    (base) [root@localhost jiangshan]# fdisk -l
    磁盘 /dev/sda:440.3 GB, 440346238976 字节,860051248 个扇区
    Units = 扇区 of 1 * 512 = 512 bytes
    扇区大小(逻辑/物理):512 字节 / 512 字节
    I/O 大小(最小/最佳):512 字节 / 512 字节
    磁盘标签类型:dos
    磁盘标识符:0x000bc950
    设备 Boot Start End Blocks Id System
    /dev/sda1 * 2048 2099199 1048576 83 Linux
    /dev/sda2 2099200 860049407 428975104 8e Linux LVM
    磁盘 /dev/mapper/centos-root:53.7 GB, 53687091200 字节,104857600 个扇区
    Units = 扇区 of 1 * 512 = 512 bytes
    扇区大小(逻辑/物理):512 字节 / 512 字节
    I/O 大小(最小/最佳):512 字节 / 512 字节
    磁盘 /dev/mapper/centos-swap:33.8 GB, 33822867456 字节,66060288 个扇区
    Units = 扇区 of 1 * 512 = 512 bytes
    扇区大小(逻辑/物理):512 字节 / 512 字节
    I/O 大小(最小/最佳):512 字节 / 512 字节
    磁盘 /dev/mapper/centos-home:351.8 GB, 351755304960 字节,687022080 个扇区
    Units = 扇区 of 1 * 512 = 512 bytes
    扇区大小(逻辑/物理):512 字节 / 512 字节
    I/O 大小(最小/最佳):512 字节 / 512 字节
    操作系统发行版信息:
    (base) [root@localhost jiangshan]# cat /etc/redhat-release
    CentOS Linux release 7.5.1804 (Core)

    CPU个数:
    $ grep 'physical id' /proc/cpuinfo | sort -u | wc -l
    CPU核数:
    $ cat /proc/cpuinfo | grep "cpu cores" | uniq
    CPU型号:
    $ cat /proc/cpuinfo | grep 'model name' |uniq
    cpu内核频率:
    $ cat /proc/cpuinfo |grep MHz|uniq
    查看CPU统计信息:
    $ lscpu
    内存总数:
    $ cat /proc/meminfo | grep MemTotal
    内核版本:
    $ cat /proc/version
    操作系统内核信息:
    # uname -a
    查看显卡;
    $ lspci | grep -i vga
    机器型号:
    # dmidecode | grep "Product Name"
    主板型号:
    # dmidecode |grep -A16 "System Information$"
    磁盘信息:
    # fdisk -l
    操作系统发行版信息:
    # cat /etc/redhat-release
    

      

  • 相关阅读:
    leetcode5 Longest Palindromic Substring
    leetcode17 Letter Combinations of a Phone Number
    leetcode13 Roman to Integer
    leetcode14 Longest Common Prefix
    leetcode20 Valid Parentheses
    leetcode392 Is Subsequence
    leetcode121 Best Time to Buy and Sell Stock
    leetcode198 House Robber
    leetcode746 Min Cost Climbing Stairs
    tomcat下使用druid配置jnid数据源
  • 原文地址:https://www.cnblogs.com/jeshy/p/11189507.html
Copyright © 2011-2022 走看看