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

  


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2026 CODEPRJ.COM