易陆发现互联网技术论坛

 找回密码
 开始注册
查看: 920|回复: 0
收起左侧

centos系统参数cpu,板卡,内存,biso信息查看

[复制链接]
发表于 2022-4-9 13:43:15 | 显示全部楼层 |阅读模式

马上注册,结交更多好友,享用更多功能,让你轻松玩转社区。

您需要 登录 才可以下载或查看,没有账号?开始注册

x
CentOS 8和7版本对比
* D' Y0 a- D4 B" i; U5 l. f
; e3 Q' ~) E- C功能 CentOS 8 CentOS 73 ^$ f% |& [3 Q
内核版本 4.18.0-x 3.10.0-x
1 B, E) T% O0 Q" x$ {文件系统 XFS XFS. u1 Z* h1 ]7 S$ I! _  ?4 `3 [
时间同步 只支持Chronyd 支持NTP和Chronyd
1 A$ T. `8 w: E文件大小 8EB 500TB# Z' w+ a( R1 ^8 p. q- {
文件系统大小 1PB 500TB
+ V: Q7 ], @8 _# Z) I" I2 P包管理工具 DNF(YUM v4) YUM(YUM v3)
+ M" J8 M) E( x! [" o最大内存 24TB 12TB* R# b  c9 `- f$ q
防火墙 nftables取代iptables firewalld底层使用iptables$ e. o8 Q6 _9 A" y% T0 n: @; a
支持架构 支持64-bit ARM 不支持64-bit ARM
; i. X" f) C& j& t7 e- i, H" U网络管理 默认安装Cockpit 无默认安装9 {* @  F# [4 t& U$ r
CPU日志 CPU日志记录在journald进程中 CPU相关日志位于/var/log/cups目录
8 ~0 @- ?6 z3 {! Z* L9 w发布时间 2019-09-24 2014-07-07
( h9 u: G( E$ n4 v+ N: l完整更新 2024-05-01 2020-08-06
, [* p0 f5 H( X- z/ N6 W* U支持IPv6 支持 Ready Logo Phase 2
7 ^' ^1 V4 S  {( `  g( xGit 2.18 1.7
$ P! @: n; ^) \9 ?+ AGCC 8.2.1 4.8.5+ E, }- v5 g2 k* F  C
Python 3.6.6 2.7.5
! n+ Z" T% {1 K& q( V6 Z' lGlibc 2.28 2.17+ p5 e: w6 S. Z/ n& _* J# ~. f
Boost 1.66 1.53
. a% r% k8 }$ s* K( VLLVM/Clang 6.0 5.0: v0 H4 o  L  a" ]
d
6 O- U2 i4 r2 f# F; Q8 ]; o5 iLinux查看硬件信息命令
4 P: K0 v7 \& N0 d* I* G0 Q一、查看服务器硬件信息+ h* `* U5 J$ b1 ^5 g
(1)查看服务器型号、序列号8 ]4 D5 c% g$ ]/ A
[root@Master ~]# dmidecode|grep "System Information" -A9|egrep  "Manufacturer|Product|Serial"
% k6 Z: C, \  I' h. n2 q! _0 Y7 d3 q% ^
(2)查看主板型号
0 m  ]' Q3 Q- M5 a9 I; a[root@Master ~]# dmidecode |grep -A16 "System Information$"
0 P7 d  S; \1 a2 u7 x- V
/ Q8 ^# C9 g4 ]$ \7 B% E (3)查看BIOS信息
1 k  k, c0 D% g. S  Z$ F# y* _复制代码/ j9 {0 R8 t. x, b) J, U
复制代码
  M# O5 Q; _/ l, ?[root@Master ~]# dmidecode -t bios- C+ P7 I$ t( n/ H
# dmidecode 2.126 w2 V+ h" A" W0 F. r6 B  T
SMBIOS 2.8 present." P+ o+ Y6 c8 [8 X. T9 G
Handle 0x0008, DMI type 0, 24 bytes
/ f' c% Q, \, L2 V4 J% mBIOS Information2 @! u3 @' {4 Q9 O3 N
        Vendor: HP; o! G+ d9 R  N! m3 Z* X
        Version: U19% L. d. Q. {5 M% F  A
        Release Date: 12/27/2015. K, \2 r, ?2 Y  R% E: p- m
        Address: 0xF0000) G5 d/ V5 p& T' p# ~5 E
        Runtime Size: 64 kB
2 Q# n# f2 H" C- u' L8 e" F3 w+ G  b        ROM Size: 16384 kB  B' A5 F4 H; ^0 }) q+ C
        Characteristics:
* Y) O! z4 J/ ]5 q; V" M8 H                PCI is supported
6 ], ]' I) U, O# ^( I+ c/ b" V5 v                PNP is supported
" l5 I' D) X3 }$ H" R& b; f2 ]                BIOS is upgradeable
0 \, c* @# F  u9 s) V6 u' _) u6 `                BIOS shadowing is allowed: n4 }' V% @, R
                ESCD support is available
0 C% S/ s7 m$ _5 {- r7 }                Boot from CD is supported
1 D3 K: Z; ~# B. v0 j! `                Selectable boot is supported
* `( B. y8 p3 k1 J                EDD is supported0 z: _8 z$ w4 r7 k
                5.25"/360 kB floppy services are supported (int 13h)
1 L4 e8 h( B& O                5.25"/1.2 MB floppy services are supported (int 13h)
6 Z/ a# T  A4 U6 [9 S/ C! ?1 p                3.5"/720 kB floppy services are supported (int 13h)9 U, Z( @5 A4 M3 z. R2 x( k3 g
                Print screen service is supported (int 5h)
! M8 c0 v  X0 v- Z* |                8042 keyboard services are supported (int 9h)+ T: f+ y- I; d5 t) I6 m6 H
                Serial services are supported (int 14h)2 f1 Q% C! O! s7 g3 U! E( \
                Printer services are supported (int 17h)
( F) u$ X- X# q5 ^: ?& K" D                CGA/mono video services are supported (int 10h)' {' ~! P3 S) j% q
                ACPI is supported
( J- T6 ~0 V9 r+ c; s" b                USB legacy is supported
, Q: o) _8 B8 C, J- q) I                BIOS boot specification is supported
& J: F$ ?: u9 r                Function key-initiated network boot is supported
9 J3 f$ H+ q3 U1 b" D2 k( p                Targeted content distribution is supported6 X! s( x, e& g, G3 w+ e9 w) o! a" Y
                UEFI is supported
9 t7 F7 M6 P, o; B% a        BIOS Revision: 2.0* H" F- g4 l" N  B; s7 q0 ~* Y
        Firmware Revision: 2.403 g0 S' M+ {& H5 t$ H# B
复制代码
4 R2 |* O6 Z! e  S% x7 m7 u& Q! w复制代码( Q4 u% m9 J8 @
  (3)查看内存槽及内存条
! F+ `; ?! E, w* B3 v复制代码% \6 \, }& ]7 C; n7 g+ V0 G9 j
复制代码6 d; t- |" l, ^$ S
[root@Master ~]# dmidecode -t memory | head -45 | tail -23
% Y9 L8 K* j% w2 t$ V3 k0 U5 gMemory Device
7 Y- W3 c+ c  Y5 e# J, X! r        Array Handle: 0x000A$ S. n6 B5 S% x
        Error Information Handle: Not Provided7 V% i2 `" l* W, q( x3 G
        Total Width: 72 bits
4 c& j' u9 I% S  w. i8 |  T        Data Width: 64 bits
' F3 K/ I2 k& A        Size: 16384 MB# X. k. w6 z7 x: U" G3 H1 E4 p
        Form Factor: DIMM  y: @& |. D( F  k# w0 k5 }  @
        Set: None( x0 g1 k) J( p* B8 ^' d- h
        Locator: PROC 1 DIMM 1
6 P% X' n3 x$ f' e        Bank Locator: Not Specified
; F& n% H5 G& q6 l, \        Type: DDR46 Y/ `5 H! Q& W5 h) S- N4 {
        Type Detail: Synchronous Registered (Buffered)1 O% ^3 o4 d) c; r' i5 W- [/ @
        Speed: 2133 MHz8 v; u8 x1 u9 j1 B1 i
        Manufacturer: HP     
: E. Y+ S2 M# e% P: W! t        Serial Number: Not Specified, u+ P  l9 l0 ]3 |
        Asset Tag: Not Specified
4 R: w6 ]$ J# j. W        Part Number: 752369-081, v: {  }4 f' ]5 c1 _
        Rank: 24 L8 W! C- h4 f# W: X; N1 y
        Configured Clock Speed: 2133 MHz2 h. Z% T+ o4 ^/ h6 U- m% j, u, r
        Minimum Voltage:  1.2 V, @6 t" _/ C! |
        Maximum Voltage:  1.2 V% u6 B6 d* k4 W8 T
        Configured Voltage:  1.2 V3 \8 ~/ b$ X# e6 v& ?. T
[root@Master ~]#: a/ L8 t. E1 R: y& t2 F; M4 d
复制代码
8 I! ?" h1 E+ Y' ~2 n7 W9 g$ M7 g; a6 T复制代码
1 c: B; B3 R  B, f' S  (4)查看网卡信息/ n/ t7 P2 Z) ?+ @
复制代码
: m. g& a0 T; a复制代码
* S! p# _3 ^4 L! u: H) P[root@Master ~]# dmesg | grep -i Ethernet9 s/ k8 ]9 Q1 ]( I1 W* U" A
igb: Intel(R) Gigabit Ethernet Network Driver - version 5.3.0-k
1 _, n3 g9 }  K& Q: @" \4 y4 ligb 0000:04:00.0: Intel(R) Gigabit Ethernet Network Connection+ T% W) M' F  f4 j) j% x6 ~
igb 0000:04:00.1: Intel(R) Gigabit Ethernet Network Connection
# S! @$ a  ?! Uigb 0000:04:00.2: Intel(R) Gigabit Ethernet Network Connection
6 k3 \. E* F, j! T$ iigb 0000:04:00.3: Intel(R) Gigabit Ethernet Network Connection
/ ]2 X4 u5 d) pigb 0000:02:00.0: Intel(R) Gigabit Ethernet Network Connection
/ j. y1 X8 E3 W6 G( Tigb 0000:02:00.1: Intel(R) Gigabit Ethernet Network Connection 6 O  N8 d$ E+ ]: c6 D* o
复制代码7 B; @3 `: \4 j" c: c
复制代码% g& q' E! n+ Q% o
(5) 查看pci信息,即主板所有硬件槽信息
6 ~, d6 j; |5 C- q6 P/ \0 i' n* [' E$ L复制代码) m& i% L4 c4 v6 d" E/ v  p
复制代码
& l- O9 k2 _: |% N. E# q1 N& B! _[root@Master ~]# lspci | head -10
! W3 b- X' U7 g3 p- K- ?+ y. h00:00.0 Host bridge: Intel Corporation Xeon E7 v3/Xeon E5 v3/Core i7 DMI2 (rev 02)7 l: h0 v9 |. b! V
00:01.0 PCI bridge: Intel Corporation Xeon E7 v3/Xeon E5 v3/Core i7 PCI Express Root Port 1 (rev 02)  c* \4 R& y" k2 N  b! h
00:01.1 PCI bridge: Intel Corporation Xeon E7 v3/Xeon E5 v3/Core i7 PCI Express Root Port 1 (rev 02)& F: T+ m- G0 e! a$ v
00:02.0 PCI bridge: Intel Corporation Xeon E7 v3/Xeon E5 v3/Core i7 PCI Express Root Port 2 (rev 02)
$ G# ^1 o. j* L$ n% _* p) Y! |00:02.1 PCI bridge: Intel Corporation Xeon E7 v3/Xeon E5 v3/Core i7 PCI Express Root Port 2 (rev 02)
2 |6 p8 R  z7 B1 x0 r$ g# z  r5 U00:02.2 PCI bridge: Intel Corporation Xeon E7 v3/Xeon E5 v3/Core i7 PCI Express Root Port 2 (rev 02)
/ j- L, }0 X, V9 T. I00:02.3 PCI bridge: Intel Corporation Xeon E7 v3/Xeon E5 v3/Core i7 PCI Express Root Port 2 (rev 02)
/ o5 h: e$ |: E# d0 {00:03.0 PCI bridge: Intel Corporation Xeon E7 v3/Xeon E5 v3/Core i7 PCI Express Root Port 3 (rev 02)- r; D: g( k* F
00:03.1 PCI bridge: Intel Corporation Xeon E7 v3/Xeon E5 v3/Core i7 PCI Express Root Port 3 (rev 02)9 N+ I) I/ b5 S  ~& }& I7 }
00:03.2 PCI bridge: Intel Corporation Xeon E7 v3/Xeon E5 v3/Core i7 PCI Express Root Port 3 (rev 02)
  V% k: Z+ p- G  I+ S- x1 i1 ?7 w复制代码
7 J; ?% V' w0 m/ D; i4 ~复制代码" D* [1 Z4 T3 A$ G. b0 [7 F" ?

8 Q  q$ z! U: _% I. b" M9 X5 r+ W二、查看CPU信息
) w7 J, u8 i: }2 p9 g7 t(1)查看cpu型号% F4 r8 k6 I, T  Y8 c
[root@Master ~]# cat /proc/cpuinfo | grep name | cut -f2 -d: | uniq -c* u9 j$ G+ I: {
     40  Intel(R) Xeon(R) CPU E5-2650 v3 @ 2.30GHz3 A9 U* `! [4 O# j) M; n. h' Z
(2)查看系统中实际物理CPU的数量(物理)
, ]' i1 E# c) G7 M4 L3 W4 R[root@Master ~]# grep 'physical id' /proc/cpuinfo | sort | uniq | wc -l
0 M; c! T) k1 e) I# A3 \8 V28 M7 o0 K! ], M) j# `9 B" g' h$ W
(3)系统中实际物理CPU的数量(核数)5 Z5 K3 j- M* J4 u
[root@Master ~]# cat /proc/cpuinfo |grep 'processor'|wc -l7 D. o' l3 H* ~1 g6 n. g
40
) Z+ Y! g  B/ ?2 g. j2 z (4)查看每个物理CPU中core的个数(即核数)
- g! K% x& F. Z[root@Master ~]# cat /proc/cpuinfo |grep "cores"|uniq * S( _7 o. A2 [6 O4 Y: y; M
cpu cores       : 108 E4 Z2 v+ N# Z" b7 J9 H$ \
(5)查看CPU的主频# C! w1 H3 {* k! s& G- ]! w, U
[root@Master ~]# cat /proc/cpuinfo |grep MHz|uniq
1 R0 J, ]+ q6 o8 s- n! ^; I2 acpu MHz         : 1200.000
! J1 S9 J4 \/ i! ^  p/ D" F+ `7 Qcpu MHz         : 2300.0007 x' q5 c' R( q
cpu MHz         : 1200.0002 c; ~3 C: m# m, p! J& _! T5 z
(6)查看CPU的详细信息
: ?, {! M7 B. P' U复制代码- T. d" a$ t! k3 b4 b  `
复制代码' A3 e+ I9 r) T/ m. N+ U/ C& g
[root@Master ~]# cat /proc/cpuinfo | head -20
. x+ d9 R2 T' Z# r* L+ ?. mprocessor       : 0                           //逻辑处理器的ID( W" Z7 K$ x$ q- Z- r( i- D9 Q
vendor_id       : GenuineIntel" K3 O, f) y: ^. [0 |1 c6 B! |
cpu family      : 6
) O% ^: K2 t6 o6 N0 _. ^model           : 63* N& A, G5 R3 C* o
model name      : Intel(R) Xeon(R) CPU E5-2650 v3 @ 2.30GHz   //CPU型号) `( L% F) H! }: z( E
stepping        : 2
6 ?7 q- |" Z& dmicrocode       : 54/ j( H3 f0 _( @$ h. T' B0 C1 X
cpu MHz         : 1200.000
; O7 |$ ?6 A: y5 W0 [1 f7 ecache size      : 25600 KB, O/ ~0 C  ]3 D0 U$ G" Q
physical id     : 0
$ o1 @5 r! P3 }. k, k$ ]2 _siblings        : 20                //相同物理封装处理器中逻辑处理器数( e( n7 K; _- j2 M/ N
core id         : 0
' P7 l* I  v9 Ncpu cores       : 10               //相同物理封装处理器中的内核数
0 Y: K* }+ w5 l* ~/ B, Hapicid          : 08 n5 q, `6 R/ E; J
initial apicid  : 0
7 D' O1 B, H6 Ufpu             : yes% n* m( _& I5 ]0 |- m: p1 n( `' t
fpu_exception   : yes3 X8 d& B) Z0 u* W0 C5 [
cpuid level     : 15
  {3 |: f% j( M" @( q% e0 _wp              : yes
6 c8 y# y" V4 |* L" j. M& j0 ^flags           : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe syscall nx pdpe1gb rdtscp lm constant_tsc arch_perfmon pebs bts rep_good xtopology nonstop_tsc aperfmperf pni pclmulqdq dtes64 monitor ds_cpl vmx smx est tm2 ssse3 fma cx16 xtpr pdcm pcid dca sse4_1 sse4_2 x2apic movbe popcnt tsc_deadline_timer aes xsave avx f16c rdrand lahf_lm abm ida arat epb xsaveopt pln pts dtherm tpr_shadow vnmi flexpriority ept vpid fsgsbase bmi1 avx2 smep bmi2 erms invpcid cqm cqm_llc cqm_occup_llc
- b- [4 }) h+ ?% u& u! P% ^$ p复制代码
  [% w: H* A! W3 k0 d  r5 O复制代码& t! W" l2 _+ [/ X/ L* X, B+ \
(7)查看CPU的相关信息
+ R* Y  m/ C! a3 t; B* Z复制代码3 p$ `5 w6 S  _5 o. z+ [5 a" _
复制代码
& B  f2 S: l0 S8 U$ x1 c[root@Master ~]# lscpu
8 B- u9 V, j2 {2 l- J0 }Architecture:          x86_64
: E9 _( o9 h: YCPU op-mode(s):        32-bit, 64-bit
! e1 `- j" k# ]& K4 n  K5 u- x4 SByte Order:            Little Endian' ]# k5 c  e1 T* T2 o
CPU(s):                40
. F. m, |) z* g  F$ sOn-line CPU(s) list:   0-39% f' H6 g9 @2 h/ _+ y
Thread(s) per core:    29 w# C: {  c9 ^, G
Core(s) per socket:    10* K+ E% W$ h4 Y: ^5 g: h
Socket(s):             28 I" \2 y' w+ v
NUMA node(s):          28 ~* B" [: P4 k0 v* `& D  v
Vendor ID:             GenuineIntel
" y" O0 g) Q* t+ b. f) sCPU family:            6
5 X/ `1 E  T$ ]5 x1 {Model:                 63; C9 b* H4 B. J' [4 y" P
Model name:            Intel(R) Xeon(R) CPU E5-2650 v3 @ 2.30GHz
' S/ I( E5 h+ t9 ~- VStepping:              2- y/ d6 F" {) h7 J% |# l
CPU MHz:               1200.000" ]: q. w/ d0 T1 Z
BogoMIPS:              4594.43. X4 t) [" a! V' B1 Z; _
Virtualization:        VT-x
) _% I! q. W( G/ w+ J" {; NL1d cache:             32K
& `6 f3 Z  a( Q7 q* [) eL1i cache:             32K$ t+ c" S# Q, p  k$ ~3 p6 t
L2 cache:              256K% G. w8 ]* W! T+ g4 v/ I
L3 cache:              25600K
  o1 C3 C' p" dNUMA node0 CPU(s):     0-9,20-29( l0 C& }# f7 V% ~$ I
NUMA node1 CPU(s):     10-19,30-39
; }* K) t; l9 w' o[root@Master ~]# 6 a! D' r: V  \5 S4 q; r/ g
复制代码
, o; X  z: G! d# r; P& W. s) v6 r复制代码8 ~0 B( D, h' e" Y8 [; H
(8)查看cpu运行模式. m1 Q5 z2 {! \- b
[root@Master ~]# getconf LONG_BIT( e& `7 M+ l; P# X% `9 n
64" T4 I1 ]  u7 A4 _$ M5 P
(9)查看cpu是否支持64bit
6 T5 h8 _+ t: Z4 k$ A[root@Master ~]#  cat /proc/cpuinfo | grep flags | grep ' lm ' | wc -l
) A$ m& Q" Z, i1 h409 i6 ], Y/ h" n& l
(结果大于0, 说明支持64bit计算. lm指long mode, 支持lm则是64bit)6 z2 f2 J/ K# c8 q% c

: n. s8 y/ I% a6 c  h- e. j. i三、查看内存信息
0 y$ u: `. [! D3 p; e(1)查看内存硬件信息' E9 _5 _) t; V; k; S5 a' J
复制代码- d6 Z. p, b5 ]' n
复制代码8 V. l3 v. u' B5 b! D$ b, p) ]
root@Master ~]# dmidecode -t memory | head -45 | tail -24+ B0 t3 T3 i, B' Z( H
Handle 0x000C, DMI type 17, 40 bytes) h+ f1 U* J7 z; g$ l
Memory Device- `* }) o2 G1 ^& b# o
        Array Handle: 0x000A
" Y+ }. O7 t0 ?- J/ F        Error Information Handle: Not Provided
( t! x8 F7 N/ q, R        Total Width: 72 bits
& [; \7 ]7 j9 {' F! |. p        Data Width: 64 bits
0 a' ~# U% P$ h. [& Q0 e        Size: 16384 MB8 v$ j: Y; n. P; J% ^% n$ l# v
        Form Factor: DIMM
$ U) \9 a4 j4 c1 g7 V        Set: None2 S2 S+ C4 Z" G3 o! o
        Locator: PROC 1 DIMM 15 u0 o1 e2 c3 f1 A& p. f
        Bank Locator: Not Specified
9 t5 \. _5 f+ D* V$ O- h) p        Type: DDR4; f% |" _1 _9 l( H) N- T4 }9 ^
        Type Detail: Synchronous Registered (Buffered)2 R; D' u+ r" [% y& V
        Speed: 2133 MHz9 C; F& G1 b* t9 Z0 |, \4 o
        Manufacturer: HP     
7 R' j4 `0 }% F9 T1 C: a2 U        Serial Number: Not Specified; _0 N8 V/ J! ]* z" }
        Asset Tag: Not Specified' f6 J" W& i  F' Y( C
        Part Number: 752369-081/ |4 J: V5 |2 I8 e& H, @
        Rank: 2
& ^% N6 N0 }( Q$ z  G# ]        Configured Clock Speed: 2133 MHz
9 j6 X2 }! N7 l5 Q- T5 a        Minimum Voltage:  1.2 V2 C1 N3 s4 {+ z9 W; O
        Maximum Voltage:  1.2 V
* R* C6 s0 Y. @        Configured Voltage:  1.2 V7 h  p+ \, Z, E) W; i2 h
复制代码
+ V* g' r$ n. @9 l, Q: N4 Q复制代码
7 `; `) a4 b- r$ y: _% } (2)最大支持多少内存- d; A* x; |# H2 l9 P
[root@Master ~]# dmidecode|grep -P 'Maximum\s+Capacity'
2 z  o& B: I: L% F3 i" R4 o  A9 h; G6 ~; z% Z2 X: x
(3)Linux 查看内存的插槽数,已经使用多少插槽.每条内存多大:6 S9 X9 K- n6 @3 r; K- F0 ~6 T
6 q! w2 }6 U5 g4 Z* a
(4)Linux 查看内存的频率:
7 V. Q$ T4 `" m" k/ I[root@Master ~]# dmidecode|grep -A16 "Memory Device"|grep 'Speed'
0 l% d% V+ D* k9 S, M8 x; b$ {1 ?8 ~4 I
(5)Linux 查看内存的详细信息:
. t% C7 _9 y6 D; x1 K4 k复制代码) L2 X+ ^0 E* r: F1 ~6 I2 |) I
复制代码
; z2 d# d! t# b  ^" C* n# y8 R! b1 C! ][root@Master ~]# cat /proc/meminfo |head -20
5 O' |- z, \* k* r: B5 FMemTotal:       131897620 kB
1 D7 Z: l& b9 GMemFree:          414124 kB
$ c' x/ i+ |+ I; o. p# d, Y5 UBuffers:         1040560 kB/ S" ~9 L* y# D8 S
Cached:         111083180 kB9 L! X/ G% t/ E/ `3 R6 _( u% T
SwapCached:         1320 kB
' A' i, N4 ^3 {Active:          7637912 kB2 A1 Y) `4 ~$ x5 d8 K8 }) H$ _
Inactive:       110607108 kB
9 W# M9 a# h# RActive(anon):    4406900 kB; i6 v! F7 d0 |2 k: i
Inactive(anon):  1714900 kB+ L$ _# o5 z- F( A( X3 N& z+ v
Active(file):    3231012 kB
; ^" A; i- Z0 qInactive(file): 108892208 kB; S4 ?: r! C, k# `
Unevictable:    10878976 kB( I- S$ I6 I( l2 F% z7 C/ ?
Mlocked:         5521652 kB, i. I+ s: g8 z9 O
SwapTotal:      16777212 kB
6 W. P1 E0 p3 j' Y# NSwapFree:       16737536 kB
: B9 N. q  N  z1 h& W3 [Dirty:               180 kB1 t3 r8 u. @# F+ h
Writeback:             0 kB4 I. Z( k* P- _
AnonPages:      16999324 kB0 v) q) [7 g& Y& J
Mapped:           149020 kB
) D$ M& ~% q, {- c9 a  IShmem:               172 kB# d% l$ w$ p' c
复制代码+ @  r3 q; G' ~: B$ W3 ~
复制代码+ j6 P  x* H' s! p8 V+ V% o
(6)Linux 查看内存的使用情况* f2 L7 \# y& `0 ^: o
[root@Master ~]# free -m    // -b,-k,-m,-g show output in bytes, KB, MB, or GB
( n3 u' V, }* A6 i# g" g1 i- X             total       used       free     shared    buffers     cached
& D. N& v) N0 {5 \& S3 v& Q1 R4 R" `Mem:        128806     123407       5398          0       1015     103474! A! W/ L" |! U8 y; d2 ^
-/+ buffers/cache:      18918     1098889 z+ J9 X$ X& [) q
Swap:        16383         38      163455 ~+ R0 E, L, ]; i8 `  R& T

2 @: I- a4 \9 H/ k+ n. a 四、查看硬盘信息3 O+ A' o: u& h, b& i) L0 J$ U
(1)查看挂接的分区状态
7 Z- d& H1 l: Y; `[root@Master ~]# fdisk -l |grep Disk
* N* P! Y& ^7 Z$ y* g7 ~( h# c5 v$ ?; v
  U9 G# K  t* W7 m, K, _(2)查看硬盘和分区分布
" e0 X4 N: M; @/ n复制代码
4 f3 ~& E  y3 S$ q/ _* u3 h* P7 O复制代码
& m3 b0 E( P/ |[root@Master ~]# lsblk
& T& j; \6 N/ ?6 d/ N6 fNAME   MAJ:MIN RM   SIZE RO TYPE MOUNTPOINT
1 e0 j' S8 j" ], Z4 J$ S2 k( [6 }sda      8:0    0 279.4G  0 disk
3 c4 _8 N' ], u1 u, `# N├─sda1   8:1    0    50M  0 part /boot9 R# O* Z& {" K, C8 z/ p  }" U
├─sda2   8:2    0   100G  0 part /' k& A4 h) A6 R" i1 X" ]
├─sda3   8:3    0    50G  0 part /home' n5 v. p$ U" |9 Q
├─sda4   8:4    0     1K  0 part & R& l. r! K6 ?! m% `+ t5 c9 ?
├─sda5   8:5    0    16G  0 part [SWAP]
7 q+ v1 V' C. ~$ j( `' T( e├─sda6   8:6    0  13.3G  0 part /tmp8 I. x/ G7 W2 A+ F- o6 H5 ?& W
└─sda7   8:7    0   100G  0 part /usr
; L' |6 D* c. |. Osdb      8:16   0  83.7T  0 disk 4 o3 S6 U% W4 ~% g, ~
└─sdb1   8:17   0  83.7T  0 part /PureDisk
& L& i  N2 u" ]+ `; j复制代码; B' D. K* h' q( J. K1 T  ^
复制代码4 H  T* t; ]: |3 F* Z
(3)查看硬盘和分区的详细信息8 `/ H& b$ \7 H' t2 G  s; k
复制代码
0 B+ ]  h5 ~0 M) ~复制代码
% F( f, w6 [+ F/ g; j$ k[root@Master ~]# fdisk -l           9 z9 C& y  G4 r' E5 J" Y7 n
Disk /dev/sda: 300.0 GB, 299966445568 bytes
4 X; q, [% K/ ?* c( ]+ s255 heads, 63 sectors/track, 36468 cylinders& N! C' Z  }* q
Units = cylinders of 16065 * 512 = 8225280 bytes
0 m3 Y1 R5 E2 A4 o& WSector size (logical/physical): 512 bytes / 512 bytes* v0 m/ ^7 O1 }' X3 Q
I/O size (minimum/optimal): 262144 bytes / 262144 bytes; I( \8 v' l4 h3 X+ z& |0 p- h
Disk identifier: 0x000384d9
: e! K' u9 i: j# x- e1 W   Device Boot      Start         End      Blocks   Id  System
8 R4 T8 `2 g- B5 {; t( h/dev/sda1   *           1           7       51200   83  Linux
+ T/ F$ V: M9 \Partition 1 does not end on cylinder boundary.
& @5 S* P. W* s6 i3 s( l) o/dev/sda2               7       13061   104857600   83  Linux
! N' p8 r7 D* S- K# @/dev/sda3           13061       19588    52428800   83  Linux
$ c9 G; P$ R% v' C& [  z/ z- T/dev/sda4           19588       36469   135597056    5  Extended, v% m/ N; ]4 _# S9 V
/dev/sda5           19588       21677    16777216   82  Linux swap / Solaris1 T# L4 g1 u& j$ m5 v  G
/dev/sda6           21677       23415    13962240   83  Linux4 p6 m* {1 k. a: ^3 Q; A' J4 J
/dev/sda7           23416       36469   104854528   83  Linux" w8 {0 a# Z# _' b# g0 a5 R8 v' Z
WARNING: GPT (GUID Partition Table) detected on '/dev/sdb'! The util fdisk doesn't support GPT. Use GNU Parted.
7 F& K: f- H& I8 {6 w' q
) E$ N7 q1 T1 h2 b1 R9 C2 zDisk /dev/sdb: 92017.3 GB, 92017310654464 bytes
- X% Z$ c3 z5 N3 X% ?- R; y. ^3 b255 heads, 63 sectors/track, 11187134 cylinders% `2 s9 Z) U) Y2 o, d4 Q
Units = cylinders of 16065 * 512 = 8225280 bytes
% R2 W* I/ g' T. r2 E/ D0 h( VSector size (logical/physical): 512 bytes / 512 bytes
6 ~0 T! H9 s/ O% s1 X, W- {$ Q' pI/O size (minimum/optimal): 262144 bytes / 6029312 bytes
3 w' t5 s/ Q, RDisk identifier: 0x00000000
) O  ]1 k4 r7 _, t2 Z   Device Boot      Start         End      Blocks   Id  System5 k* h( e. t% @7 g, ~, p
/dev/sdb1               1      267350  2147483647+  ee  GPT! Y9 x: [! a# @, w
Partition 1 does not start on physical sector boundary.
1 _2 f0 l: \$ o复制代码8 P5 n4 E4 h$ y1 M3 N- G  z1 x9 e
复制代码4 q4 t+ R- U) Z5 }; ^* Y
(4)查看挂接的分区状态
- l  g0 N0 H) y复制代码
; f, _$ p# h  e3 O1 }0 d复制代码7 ~# n0 j4 z4 ]1 a
[root@Master ~]# mount | column -t
+ ^5 R8 y( Q( E8 x/dev/sda2  on  /                         type  ext4         (rw)4 |: E+ u! ]5 V# @3 J" Y4 ~1 p
proc       on  /proc                     type  proc         (rw)
5 c, b7 }+ \4 F/ jsysfs      on  /sys                      type  sysfs        (rw)
5 p# Y; v# h8 G% x' Wdevpts     on  /dev/pts                  type  devpts       (rw,gid=5,mode=620)
6 }% B% M- R- Q: X# H5 Utmpfs      on  /dev/shm                  type  tmpfs        (rw)
4 V4 B4 s" |! B$ ^, E: k- s  d; x/dev/sda1  on  /boot                     type  ext4         (rw)" s4 i0 r* _4 S5 w* f) u
/dev/sda3  on  /home                     type  ext4         (rw)+ t+ K2 b8 E% P/ w8 E( Y: f
/dev/sda6  on  /tmp                      type  ext4         (rw)
  T- V4 n# \  [7 E! B0 T% ^+ F/dev/sda7  on  /usr                      type  ext4         (rw)  R! M: m) P/ C" x3 f4 t3 U- h
/dev/sdb1  on  /PureDisk                 type  ext4         (rw)
, O9 E/ K0 h. X6 L9 lnone       on  /proc/sys/fs/binfmt_misc  type  binfmt_misc  (rw8 k% R+ B8 `7 v7 S
复制代码
. a! W" N: X; q& F5 E$ R复制代码
, L* }" X9 m* V) s) s/ ?7 W/ A (5)查看挂接的分区状态
2 x% P& w% B' m) E" u9 }# n[root@Master ~]# swapon -s   
0 z9 j2 ^7 f- h7 mFilename                                Type            Size    Used    Priority8 B! R* C% c7 |" f1 e- A
/dev/sda5                               partition       16777212        39676   -16 K$ B. @  X) @& R8 e1 h! W
(6)查看硬盘使用情况
& l) i3 y& L$ J复制代码9 A3 c) Q* f. \) ?3 R/ i
复制代码8 M! K/ p+ `7 f6 J' R7 y
[root@Master ~]# df -hT
; Y' _; U: h! n$ a) H+ i* {! BFilesystem     Type   Size  Used Avail Use% Mounted on
2 _6 o1 J% g( I3 Z' P2 c; ]$ `/dev/sda2      ext4    99G  561M   93G   1% /& B$ I2 ^4 r4 p2 h2 [4 r/ E
tmpfs          tmpfs   63G   76K   63G   1% /dev/shm$ Q8 T: u$ N! G
/dev/sda1      ext4    45M   38M  4.9M  89% /boot
' G2 j  y" M& r, Z$ o4 e/dev/sda3      ext4    50G   52M   47G   1% /home
' L+ O7 G# \! B2 Q$ Q9 V/dev/sda6      ext4    13G   34M   13G   1% /tmp  }3 r4 k+ P1 ]" u
/dev/sda7      ext4    99G   21G   73G  23% /usr
- g7 `/ R# P3 q. r/dev/sdb1      ext4    84T   41T   40T  51% /PureDisk
* `( A& w- e# z6 p% @7 h# L复制代码
9 W1 J8 [8 |0 t$ x5 Z复制代码
8 e0 u1 C9 D# `- K2 d (7) 硬盘检测命令smartctl
- u4 C7 o9 n. T3 h! K/ P6 J复制代码
& a4 R5 Z! C+ S: n4 U复制代码
7 n8 P% U) k" ]. J: ?! l/ z[root@Master ~]# smartctl -a /dev/sda& I4 H& b! n7 |, [  x" t
smartctl 5.43 2012-06-30 r3573 [x86_64-linux-2.6.32-642.el6.x86_64] (local build)1 K; A' u$ R$ V/ J( V  U
Copyright (C) 2002-12 by Bruce Allen, http://smartmontools.sourceforge.net" r2 _' C5 F3 ~, z! D4 K$ J: n
Vendor:               HP      $ h, r( D: Y) t% c1 r3 t9 g
Product:              LOGICAL VOLUME  3 i% ]) i; f% i" s) e8 Z; D
Revision:             3.56
( F& m3 W9 M3 RUser Capacity:        299,966,445,568 bytes [299 GB]5 g% p# A' P8 F$ j  h- e
Logical block size:   512 bytes1 E% x$ N' h0 n4 _' E7 p
Logical Unit id:      0x600508b1001cc8a1b9ec4dacc5ab35dc. t; S  ^4 V; `7 {
Serial number:        PDNNK0BRH9U0AG  
9 Q* k1 }( ?0 }$ U. q6 FDevice type:          disk3 K( S9 `- K' I: r' W
Local Time is:        Mon Feb  5 13:13:33 2018 CST+ X5 i$ r+ s1 F# F
Device supports SMART and is Enabled
" |7 K! p& b6 c, k9 R% q% |* wTemperature Warning Disabled or Not Supported
' V9 q6 Q' Q$ s6 Q7 B% TSMART Health Status: OK
, Q% d9 c. E! M6 X* G! l2 s2 gError Counter logging not supported' M7 W) \9 D" }3 X2 F7 Z! F
Device does not support Self Test logging
4 w+ }6 `. N  Y1 v" I复制代码; @, y$ [& K6 L  i7 h
复制代码/ U6 C9 F( ~: H' e
! T/ P9 ^; [/ j7 a  m8 M3 D0 {4 M- n
五、查看网卡信息
- ^$ _9 [6 F) {1 {# Y8 N; u(1)查看网卡硬件信息
$ p7 A& T8 Y3 ~0 k$ C* V! Z[root@Master ~]#  lspci | grep -i 'eth'
" ?8 l+ ]/ i2 a3 r" I% k* K
# C4 o' ]/ U) {   (2)查看系统的所有网络接口, J3 e4 O  i/ w$ r4 e) ^' Y/ ~% \
[root@Master ~]# ifconfig -a6 [& k. e* {% _- o8 h
[root@Master ~]# ip link show
; D0 T" X* d% J! o    (3)查看某个网络接口的详细信息,例如eth0的详细参数和指标/ O. M1 n5 e& \' o& \8 p
复制代码
& R0 T/ ^6 m! ?3 f复制代码* E5 |5 ?0 X* R
[root@Master ~]# ethtool eth0' s8 I- K( b4 F8 l* e7 k- e) k9 \
Settings for eth0:
! p" o4 h5 t9 Z- S        Supported ports: [ FIBRE ]
# H! Q, W% y8 L& x5 w+ `2 `6 z. {        Supported link modes:   10000baseT/Full
9 Y& S0 m, s6 X3 _/ F        Supported pause frame use: No$ V5 h! T& T( k' b4 @
        Supports auto-negotiation: No6 |8 {3 B; L  O: L
        Advertised link modes:  10000baseT/Full 4 u/ d1 T8 B4 [; i4 Q8 X
        Advertised pause frame use: No
. o/ d; n7 c: |  P6 M/ r        Advertised auto-negotiation: No
5 n% \4 F5 \4 H  r/ Q9 N        Speed: 10000Mb/s, O1 B" U; {- i2 }" F, L9 d6 W# P
        Duplex: Full- U$ l+ `) V) b* x$ W) Z
        Port: FIBRE
  w4 d: B% n! {) p* [9 t& x        PHYAD: 0
6 v! r9 V" y& f        Transceiver: external% ~5 ?4 f* P& H4 n, F& ?, W
        Auto-negotiation: off
4 L2 t( T0 V; h& i  r* H        Supports Wake-on: d
4 W- k1 A2 _3 H) y7 \        Wake-on: d
4 B8 W$ y: g, w& w' J        Current message level: 0x00000007 (7)
9 \0 P  {8 l& w- L/ z                               drv probe link
8 J, t) c# j4 \2 }) h; o        Link detected: yes
0 O! ?% L7 B0 c1 V复制代码& [. r, O6 {, @9 I6 N# B
复制代码# k3 E- h7 `9 L0 A( Z" v$ e
    (4)查看所有网卡的链路状态- }" H; Q' }& k
复制代码% I$ M* y* r* u( F
复制代码
/ V1 _' A0 A( C; T[root@Master ~]# for i in `seq 0 9`;do ethtool eth${i} | egrep 'eth|Link';done  H9 D# b9 n+ C2 \" h: ?
Settings for eth0:  I5 `3 a  k% w
        Link detected: yes   
9 X8 Q7 V% _0 V+ V$ uSettings for eth1:! c. i9 g  T: U1 ?
        Link detected: yes
: p# I! M0 w4 ?% g8 y. |Settings for eth2:
( j* P7 z+ ~0 A* W# l; I        Link detected: no
, d1 [1 Z% Z% n4 x) N  s. GSettings for eth3:
$ @5 S2 U/ x5 m' V! A        Link detected: no+ y9 A5 g  E3 c, O- x' R
Settings for eth4:
  I8 c5 Y3 \" M* Z$ E, m9 q% I        Link detected: no2 s3 M+ l# @  f- e% ~; \" P& D: Y
Settings for eth5:
9 b( N' j1 s  d6 m        Link detected: no
7 F1 G) e6 Q7 {# {( FSettings for eth6:
3 {' a6 L: q* o7 ]        Link detected: no; Z4 v. g$ H' f$ E" z+ e/ j
Settings for eth7:% D$ K, o! X9 [- r' Z' I% M. X
        Link detected: no0 A4 E2 D, M2 a" \, N& _
Settings for eth8:' u: Y9 e; w' E* M6 h
        Link detected: no
% O, ^) K$ J% T) @6 ]( s* N' eSettings for eth9:% f6 G/ V0 N, R, K( @8 S' Z0 \
        Link detected: no
, h& ^$ ]4 C; `' J复制代码. n4 Z, y/ G, g
复制代码
' _/ {7 f" S" V7 W* L5 s$ A0 f
' v" Z. B' L: P, W$ v# Q& t2 n6 @ 六、列出所有PCI设备信息
- c7 v/ J  W8 x; J* f, j5 r8 Y; ?复制代码& D7 G/ S; t' G; Y
复制代码
2 _" `' T* l) K" _7 A5 }3 A! g[root@Master ~]# lspci -tv | more7 R+ I! `* c+ ^8 C9 s" Z
-+-[0000:ff]-+-08.0  Intel Corporation Xeon E7 v3/Xeon E5 v3/Core i7 QPI Link 04 J( q- u% U! q5 V# O. {0 }
|           +-08.3  Intel Corporation Xeon E7 v3/Xeon E5 v3/Core i7 QPI Link 03 j- Q% M$ X! `3 v
|           +-09.0  Intel Corporation Xeon E7 v3/Xeon E5 v3/Core i7 QPI Link 1
/ A9 n1 y% g2 y) m7 t; B; d+ N+ r |           +-09.3  Intel Corporation Xeon E7 v3/Xeon E5 v3/Core i7 QPI Link 17 ~5 l% i& k1 S' t# y4 _
|           +-0b.0  Intel Corporation Xeon E7 v3/Xeon E5 v3/Core i7 R3 QPI Link 0 & 1 Monitoring
4 `2 q* m, l  _$ l5 U  V: ^9 C |           +-0b.1  Intel Corporation Xeon E7 v3/Xeon E5 v3/Core i7 R3 QPI Link 0 & 1 Monitoring
4 h6 d7 [; T+ p/ F |           +-0b.2  Intel Corporation Xeon E7 v3/Xeon E5 v3/Core i7 R3 QPI Link 0 & 1 Monitoring; m  a' g2 [! q' u: a
|           +-0c.0  Intel Corporation Xeon E7 v3/Xeon E5 v3/Core i7 Unicast Registers& J2 i/ S4 a' n4 t( o; s
|           +-0c.1  Intel Corporation Xeon E7 v3/Xeon E5 v3/Core i7 Unicast Registers5 @! q% r5 S* x; O" l
|           +-0c.2  Intel Corporation Xeon E7 v3/Xeon E5 v3/Core i7 Unicast Registers& s/ B& l8 e+ C/ A2 |
|           +-0c.3  Intel Corporation Xeon E7 v3/Xeon E5 v3/Core i7 Unicast Registers, K4 E+ v: c) O! V) T  m% s
|           +-0c.4  Intel Corporation Xeon E7 v3/Xeon E5 v3/Core i7 Unicast Registers+ i5 M: C2 e+ R! g7 s
|           +-0c.5  Intel Corporation Xeon E7 v3/Xeon E5 v3/Core i7 Unicast Registers
- f8 V. a1 G/ d, J1 n  G( T0 l |           +-0c.6  Intel Corporation Xeon E7 v3/Xeon E5 v3/Core i7 Unicast Registers
8 ]5 `9 C3 J& [9 i" L, ~ |           +-0c.7  Intel Corporation Xeon E7 v3/Xeon E5 v3/Core i7 Unicast Registers2 o' r9 E; L; T$ B" k
|           +-0d.0  Intel Corporation Xeon E7 v3/Xeon E5 v3/Core i7 Unicast Registers
" f" _5 n$ Z0 H! v7 Q |           +-0d.1  Intel Corporation Xeon E7 v3/Xeon E5 v3/Core i7 Unicast Registers( q% C( \5 a. [3 w+ H9 ~8 U8 |! H- f
|           +-0f.0  Intel Corporation Xeon E7 v3/Xeon E5 v3/Core i7 Buffered Ring Agent: W( n7 _- F, ^1 c  D% P( P) x% G/ s
|           +-0f.1  Intel Corporation Xeon E7 v3/Xeon E5 v3/Core i7 Buffered Ring Agent
# |% K0 f- |8 B3 D5 a2 e% P% ]* }$ O |           +-0f.2  Intel Corporation Xeon E7 v3/Xeon E5 v3/Core i7 Buffered Ring Agent
7 }2 b  q$ f( ?' G! w1 B+ A |           +-0f.3  Intel Corporation Xeon E7 v3/Xeon E5 v3/Core i7 Buffered Ring Agent
$ u9 t$ Q' S" m+ I, w' M- f! I, [) L复制代码
, e7 `4 X/ {" p" O ) t/ x2 j3 r& U6 o7 m/ S
复制代码
% @- l, I; Y; d# t: |$ m4 ^4 P- C ( l' G% J: ^- Y* n2 k6 x$ k2 o
end
9 Y! m4 U% ^$ @CentOS 8 U盘安装及Installation Source报错和ssh报错的解决方法
: a! C, j* E8 q" b
您需要登录后才可以回帖 登录 | 开始注册

本版积分规则

关闭

站长推荐上一条 /4 下一条

北京云银创陇科技有限公司以云计算运维,代码开发

QQ|返回首页|Archiver|小黑屋|易陆发现技术论坛 ( 蜀ICP备2026014127号-1 )点击这里给我发消息

GMT+8, 2026-4-8 21:39 , Processed in 0.062542 second(s), 22 queries .

Powered by Discuz! X3.4 Licensed

© 2012-2025 Discuz! Team.

快速回复 返回顶部 返回列表