找回密码
 注册
查看: 926|回复: 0

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

[复制链接]

1

主题

0

回帖

12

积分

管理员

积分
12
QQ
发表于 2022-4-9 13:43:15 | 显示全部楼层 |阅读模式
CentOS 8和7版本对比
2 N% j& ]3 q9 X- T* b' j
, C. @2 ^4 k6 ]/ F4 B( V' y+ p功能 CentOS 8 CentOS 7
, l' i: c; C( U内核版本 4.18.0-x 3.10.0-x
* D) u  Y0 N3 O0 h9 L文件系统 XFS XFS/ O" b+ l2 J! J$ U4 f& c) ~
时间同步 只支持Chronyd 支持NTP和Chronyd
6 E( y4 n  P7 |, f: e文件大小 8EB 500TB
2 [1 ~/ x* N5 g文件系统大小 1PB 500TB
2 l: L' [; ?* X  R( x9 U3 a4 L包管理工具 DNF(YUM v4) YUM(YUM v3)2 ^( c& n. l. N  S) `$ `
最大内存 24TB 12TB( z, p2 @% |$ [9 |, t) U4 C' @5 h
防火墙 nftables取代iptables firewalld底层使用iptables
5 i5 A0 V  u  j6 Y支持架构 支持64-bit ARM 不支持64-bit ARM
4 C9 o% @2 B+ ^" j网络管理 默认安装Cockpit 无默认安装
# p9 K* y5 j1 e4 r2 UCPU日志 CPU日志记录在journald进程中 CPU相关日志位于/var/log/cups目录
0 B" `1 ]) P6 o6 P- D) D1 ~发布时间 2019-09-24 2014-07-07
7 t" n/ Y( z* f$ Y完整更新 2024-05-01 2020-08-06
5 i0 |$ n9 b  I' p8 W( u: H  l/ S支持IPv6 支持 Ready Logo Phase 2
, \9 y4 F/ g! d% DGit 2.18 1.76 _' z0 F3 D+ A, b) P5 O. i5 F
GCC 8.2.1 4.8.5. J6 S  q6 s6 {7 e* D) A8 y
Python 3.6.6 2.7.5
: ~- I/ w  |! U6 d9 QGlibc 2.28 2.17
  u$ n8 x1 ~* a( v& d7 ~  NBoost 1.66 1.530 Z# A1 I( B2 c: t  F' u! l  {
LLVM/Clang 6.0 5.0
  o4 t$ z9 i( L: K/ o' l  B/ D: }d+ O  m. |+ ^& x
Linux查看硬件信息命令
$ F; L  B' b- R" e一、查看服务器硬件信息
8 V* N( b# o: n& d+ K1 L(1)查看服务器型号、序列号+ A$ o8 b  V) h% ]7 m2 Q
[root@Master ~]# dmidecode|grep "System Information" -A9|egrep  "Manufacturer|Product|Serial"
+ i$ M2 Q; H4 N. [- _1 K1 M/ T. k" }; |7 Y0 R' P  W
(2)查看主板型号
% ]" u, K" w9 b# w9 M[root@Master ~]# dmidecode |grep -A16 "System Information$" 8 s4 b) f7 ?; i3 j. S5 M7 `

$ p/ [4 I4 v3 [$ _3 x/ {( r- z  B (3)查看BIOS信息
7 k# r/ x" A" h复制代码
, z: c, E( ]$ A8 W复制代码1 o* B. H% s, H& V
[root@Master ~]# dmidecode -t bios0 ^, p+ g3 k$ `' w3 x0 c
# dmidecode 2.12
! {" n2 H. {7 `/ |# L) @SMBIOS 2.8 present.  R( p% X: A2 `/ }, \
Handle 0x0008, DMI type 0, 24 bytes
- X" r7 z. ]! B2 F5 oBIOS Information
/ R* l4 z7 V. \# U& W        Vendor: HP( V1 d3 e5 F7 c% m
        Version: U19
# j8 S9 ?/ T0 d2 g# K  m        Release Date: 12/27/2015
$ F% A! X! _5 h  ~5 g$ G/ }1 C' b! @        Address: 0xF00004 f* Q/ C9 Q0 I% G
        Runtime Size: 64 kB
% x2 m  w% r  @: q# ~' m* n        ROM Size: 16384 kB* ^! _" V) d- q* ^8 ^9 V2 l
        Characteristics:6 x/ }* W/ o- T( _
                PCI is supported+ ^* u5 w8 L) B0 w
                PNP is supported# U" v, l; r# V: h# W
                BIOS is upgradeable. h  |  y' y, L6 Y# W  H2 V
                BIOS shadowing is allowed) S  W8 E  k7 k: z8 {, o
                ESCD support is available+ d4 ~& H( t) F
                Boot from CD is supported
" E4 K, |+ w3 L, ~5 `- v& T                Selectable boot is supported/ c: x& t) T* f4 T+ R
                EDD is supported
. g2 {/ _* u+ B" F, b% ?$ |0 _" o                5.25"/360 kB floppy services are supported (int 13h)
6 D& l6 h/ [8 |& d  X                5.25"/1.2 MB floppy services are supported (int 13h)
" J, A2 U* ~- c4 Q                3.5"/720 kB floppy services are supported (int 13h)
, x7 v. m, F, L; a6 a6 L. q                Print screen service is supported (int 5h)8 {' D' ~' G/ H$ Y% p
                8042 keyboard services are supported (int 9h)
7 Y; E4 e- F9 j1 X                Serial services are supported (int 14h)/ |- Y! _, F( \  w6 c
                Printer services are supported (int 17h)
/ z: ^3 R2 N* K1 N/ z                CGA/mono video services are supported (int 10h)
- x/ J; @; p0 O, \                ACPI is supported4 e2 ~! V* C% W# q
                USB legacy is supported8 W0 u3 F2 \3 c
                BIOS boot specification is supported
+ Y# K% W- c5 ~8 g) ?                Function key-initiated network boot is supported
0 e8 O+ p9 u% R  v7 D& G                Targeted content distribution is supported
- O; k1 b: L- b3 V& q6 c# P0 i* L                UEFI is supported
4 `# B1 Q" \. d6 y# _0 H        BIOS Revision: 2.09 `% S4 O- G5 X: R4 Y8 `+ F
        Firmware Revision: 2.40
+ a( l0 \5 A1 k8 }5 u8 u  G复制代码% P1 W- Q9 v6 h% \; x8 ]1 E' E+ j9 C
复制代码7 M% i, {' U0 D
  (3)查看内存槽及内存条! r3 M; }6 h- j3 e: A+ \5 z
复制代码
, t; K( R* U2 q: Q复制代码1 G3 w7 s5 u$ D: x- q
[root@Master ~]# dmidecode -t memory | head -45 | tail -23
) c. s* j. A$ o! A+ J/ C# ?. PMemory Device2 [( N! \  r" m! u: U
        Array Handle: 0x000A
$ X% V2 f, X, l' Y$ E3 V1 r/ L        Error Information Handle: Not Provided
1 P7 d) l! x0 |2 I! b3 w        Total Width: 72 bits
# j0 ~2 H7 r- J/ P: \        Data Width: 64 bits
- R2 H; x- N) |/ _0 p8 z0 `        Size: 16384 MB1 C! q9 \9 `  v# J
        Form Factor: DIMM
/ H# ^  d& h7 r: c( Y        Set: None  t6 {5 {5 f7 N( s# O5 K( P6 y
        Locator: PROC 1 DIMM 1. S  A% C8 T# m
        Bank Locator: Not Specified' I/ L2 y/ N2 _! V3 O
        Type: DDR4
* l6 c6 P( a  i' `        Type Detail: Synchronous Registered (Buffered)
) s0 c* s" t" |  `5 t# t        Speed: 2133 MHz
/ w: q& W- w$ b, [; r6 z        Manufacturer: HP     
8 K% ?5 e8 w8 g        Serial Number: Not Specified5 C1 I( }0 Y4 N
        Asset Tag: Not Specified
/ y& C. v6 N" C2 A& c1 V; u8 n8 L3 @        Part Number: 752369-081
0 s9 Z. M; _, _9 u& S        Rank: 2* m! |! f, |1 `% u, f' v
        Configured Clock Speed: 2133 MHz& ~0 e5 Q- g( @
        Minimum Voltage:  1.2 V
4 P/ I; y5 }/ e1 J4 G        Maximum Voltage:  1.2 V  N9 V9 d0 l* F% }4 Z- T
        Configured Voltage:  1.2 V1 _1 v# i: n8 Y: d% j
[root@Master ~]#
9 }5 v! A% g0 `: D! C4 Q复制代码
3 c# ~" Y/ j/ k( b; e& j4 z复制代码
, J) t! u. D& [8 G6 F( M/ v! S  (4)查看网卡信息* h0 C% m5 T4 L' r/ t/ I
复制代码
" X6 D2 K$ P, \; v复制代码  P4 A3 \5 d* a
[root@Master ~]# dmesg | grep -i Ethernet
0 m7 A# w7 O% C6 Higb: Intel(R) Gigabit Ethernet Network Driver - version 5.3.0-k, f: Z' Q! V8 P8 D3 g
igb 0000:04:00.0: Intel(R) Gigabit Ethernet Network Connection# D. W2 e8 q- r$ ]' f) z
igb 0000:04:00.1: Intel(R) Gigabit Ethernet Network Connection$ F  z8 o6 b9 X- g+ z6 c) n
igb 0000:04:00.2: Intel(R) Gigabit Ethernet Network Connection* b: `( a. m7 ]& J( Q4 a8 f
igb 0000:04:00.3: Intel(R) Gigabit Ethernet Network Connection
8 g! X1 _% e+ r1 O0 C. Sigb 0000:02:00.0: Intel(R) Gigabit Ethernet Network Connection
: v- M# m! `5 s3 [# O1 [igb 0000:02:00.1: Intel(R) Gigabit Ethernet Network Connection
2 v, ^: b' u! {复制代码1 R2 a5 o( f0 {+ O  l: Y9 F
复制代码
  ~. J) q" o; b- Y, L1 u(5) 查看pci信息,即主板所有硬件槽信息! A  u) s% l% A9 r
复制代码, W+ M4 r1 d; t
复制代码: k* Z: \! B: @: d) x* f
[root@Master ~]# lspci | head -10
% i* c  y) ?0 a9 w' ~0 [# o00:00.0 Host bridge: Intel Corporation Xeon E7 v3/Xeon E5 v3/Core i7 DMI2 (rev 02)4 e* `2 [9 G! }0 p- Z, ]  f  e. N
00:01.0 PCI bridge: Intel Corporation Xeon E7 v3/Xeon E5 v3/Core i7 PCI Express Root Port 1 (rev 02)6 S9 N6 T$ m% \: b, z" P% ^
00:01.1 PCI bridge: Intel Corporation Xeon E7 v3/Xeon E5 v3/Core i7 PCI Express Root Port 1 (rev 02)( X2 Q& W! e  |, u1 d9 s+ C
00:02.0 PCI bridge: Intel Corporation Xeon E7 v3/Xeon E5 v3/Core i7 PCI Express Root Port 2 (rev 02)+ Z' t; R& D% L4 I' F$ a1 h8 P: W
00:02.1 PCI bridge: Intel Corporation Xeon E7 v3/Xeon E5 v3/Core i7 PCI Express Root Port 2 (rev 02)
: E" Z: N4 T. K( k) T. o3 H. z$ J: z00:02.2 PCI bridge: Intel Corporation Xeon E7 v3/Xeon E5 v3/Core i7 PCI Express Root Port 2 (rev 02)2 a1 b' ~3 h0 O
00:02.3 PCI bridge: Intel Corporation Xeon E7 v3/Xeon E5 v3/Core i7 PCI Express Root Port 2 (rev 02)2 ?  V5 R; _) _3 ~" Y$ [, P; \
00:03.0 PCI bridge: Intel Corporation Xeon E7 v3/Xeon E5 v3/Core i7 PCI Express Root Port 3 (rev 02)6 }1 \! I* k/ ^9 e; E
00:03.1 PCI bridge: Intel Corporation Xeon E7 v3/Xeon E5 v3/Core i7 PCI Express Root Port 3 (rev 02)
" K$ m+ R; A! k' r00:03.2 PCI bridge: Intel Corporation Xeon E7 v3/Xeon E5 v3/Core i7 PCI Express Root Port 3 (rev 02)1 }3 z2 E$ |7 W1 j$ B# f
复制代码" p- h  i3 B1 c% F
复制代码) Q& r2 c( A2 ^& E  }
4 W3 Y$ C$ O+ l; U
二、查看CPU信息
+ q$ P# Z3 @' \(1)查看cpu型号9 j4 }% W, c, ]: @3 A: u
[root@Master ~]# cat /proc/cpuinfo | grep name | cut -f2 -d: | uniq -c1 q. D* }  J. {  }( h% I" f
     40  Intel(R) Xeon(R) CPU E5-2650 v3 @ 2.30GHz+ ~# D/ H* r6 B% N* i
(2)查看系统中实际物理CPU的数量(物理)
5 k# \4 B6 p' P3 ]  n[root@Master ~]# grep 'physical id' /proc/cpuinfo | sort | uniq | wc -l' E9 d- ~# W% f$ Z
2
" P& x, a) w; J6 |(3)系统中实际物理CPU的数量(核数)
: Z4 o; e( e& W: I3 o" U9 V1 i[root@Master ~]# cat /proc/cpuinfo |grep 'processor'|wc -l6 s9 V* T7 Y- q2 Z
40
" Y1 N% t) V+ ], N8 I& F (4)查看每个物理CPU中core的个数(即核数)) V3 n9 x, f& W
[root@Master ~]# cat /proc/cpuinfo |grep "cores"|uniq
; O3 \7 g' g2 Kcpu cores       : 10
# l( ]* O# H( @+ d) t(5)查看CPU的主频
% c+ N" U' W% p; Q2 G, Z[root@Master ~]# cat /proc/cpuinfo |grep MHz|uniq
% Q: o, M- P, }8 H& K4 t, O. s/ @cpu MHz         : 1200.0009 Q0 A" ?* C* o. N6 {( e: g
cpu MHz         : 2300.000, w0 k5 f3 U$ N; k8 o; M
cpu MHz         : 1200.000$ b+ U' |8 R! }9 T
(6)查看CPU的详细信息
; J1 _) `8 c% N; K) i8 T. r复制代码! I/ Q9 {( a7 @7 l, e5 l
复制代码0 U8 _- N, ^6 D$ t& M
[root@Master ~]# cat /proc/cpuinfo | head -20
: _8 {) \6 i8 Mprocessor       : 0                           //逻辑处理器的ID7 N% |8 ?' X2 U, W6 s
vendor_id       : GenuineIntel
- |: R( n7 ~7 Gcpu family      : 61 u' B5 L6 [5 t- `" w% u2 _
model           : 63
! Q2 h( F9 ~. r  a" Fmodel name      : Intel(R) Xeon(R) CPU E5-2650 v3 @ 2.30GHz   //CPU型号
0 m$ O+ D) |3 j) Z5 mstepping        : 27 @1 d2 d4 [5 I# G2 c9 K- K6 u# X
microcode       : 54
3 n( C/ g4 R% @, @3 z: Vcpu MHz         : 1200.000" F: w7 G, A: Q: f! L& N" f% H
cache size      : 25600 KB
' B3 J$ W! {! D2 dphysical id     : 0
. b( _) y9 t( \siblings        : 20                //相同物理封装处理器中逻辑处理器数
6 H: [# v) v+ i% e1 Qcore id         : 0
3 |9 n7 @5 r1 N% N( I% U/ jcpu cores       : 10               //相同物理封装处理器中的内核数
# {' A/ @  @. J2 g( s3 g% ?apicid          : 07 |  D: P" s+ ~! L+ u" i6 A3 m6 d
initial apicid  : 0$ y0 _4 F9 a" \+ N& ?9 f" |: e
fpu             : yes
1 W: F% D6 M4 t/ ofpu_exception   : yes% c; w9 J, g. o5 q9 |* X
cpuid level     : 15- c1 J. E3 _/ }" H9 [
wp              : yes) S3 _! k! x( k! M+ Y! Z
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( A2 N1 ^1 b! z0 m
复制代码
: c' Y. u4 U6 b, |复制代码
" I7 t% O% X' W( ^ (7)查看CPU的相关信息
0 z4 J$ z: E/ `复制代码5 f+ B3 s3 _! o# C
复制代码! b# F1 G# H3 `9 e3 ?( @) w3 O: A3 x
[root@Master ~]# lscpu. X& U( W# R7 Z  o6 C' c
Architecture:          x86_64
: X  A* K/ D8 `. _) p  j0 `CPU op-mode(s):        32-bit, 64-bit
9 {; K" \: t8 g; R3 d& x# p) T$ jByte Order:            Little Endian
/ T6 B. T  X' o# ?& cCPU(s):                40# s+ l! }9 A& i8 P. \! U+ t1 Y
On-line CPU(s) list:   0-398 d( d; P, J3 C
Thread(s) per core:    2
0 `7 n. c4 X5 y2 f! pCore(s) per socket:    10
) F* F- o7 P. ]Socket(s):             2
' I# m! j2 K1 d' B2 F" R6 R/ W/ qNUMA node(s):          2
! v6 N" o# C5 K, H7 HVendor ID:             GenuineIntel+ V  V. P+ O  `. R8 M
CPU family:            6
6 Q, d0 z: v% d4 A" AModel:                 636 z4 K9 K' j) g
Model name:            Intel(R) Xeon(R) CPU E5-2650 v3 @ 2.30GHz" O5 G: h; D, Z1 i  R2 T% S% d
Stepping:              2: p2 j4 v" D' @( G5 E0 [; k
CPU MHz:               1200.000
. X+ T& ?: _! _+ E. v& @( N  @BogoMIPS:              4594.43
: v. H8 Q7 z% X. [# n: C# W% S, o( BVirtualization:        VT-x
3 e. S/ I) e. i. d- E; E# K7 J& WL1d cache:             32K2 P2 l# Q# g8 J9 }0 t7 ?
L1i cache:             32K
4 u) l1 L& m, KL2 cache:              256K
0 c0 Y9 e* N  o" L: I: I! K- sL3 cache:              25600K
- i8 F5 d2 i. A+ I: UNUMA node0 CPU(s):     0-9,20-29
  e; a8 ^7 L& Z% A( `' G( X8 {! RNUMA node1 CPU(s):     10-19,30-39
5 }, H5 v$ J9 f/ D+ z: n[root@Master ~]#
( e6 t$ w3 s* z$ j1 L, T- ~' e复制代码
! m9 N0 b2 T& X5 K8 M6 c复制代码. {0 |* R  {+ b2 {+ b
(8)查看cpu运行模式
. B6 h: @/ x3 a8 b3 C$ F[root@Master ~]# getconf LONG_BIT
1 O7 C+ f* u6 ~5 e1 u% m5 K640 o( a3 w! b( ~9 [
(9)查看cpu是否支持64bit6 ]2 ?- P" d2 e+ X" J, m
[root@Master ~]#  cat /proc/cpuinfo | grep flags | grep ' lm ' | wc -l, |$ M* c! t2 P7 r1 p6 O9 p
40
3 Z9 }: w) i- S(结果大于0, 说明支持64bit计算. lm指long mode, 支持lm则是64bit)
8 I" o( m0 E3 c$ R8 `% ?. x ) c6 M) B# p; b- g3 J( x  @0 c
三、查看内存信息! N( w7 t3 I) j1 w0 a4 b/ b
(1)查看内存硬件信息/ C: B+ n( Z. x% ~- V
复制代码6 k& A! l: `9 y( N
复制代码$ F+ m) [/ c  D
root@Master ~]# dmidecode -t memory | head -45 | tail -24
' v4 }+ t1 z3 P$ HHandle 0x000C, DMI type 17, 40 bytes  q; }8 f$ R+ }4 R  g
Memory Device
1 U2 C; g* ]* r5 y7 O& I. j6 q        Array Handle: 0x000A
: @- ]: ~: v* S        Error Information Handle: Not Provided- o' A& C7 z# d- Q" e3 {+ ^0 g
        Total Width: 72 bits) l7 _; g- P, T3 E# J
        Data Width: 64 bits
6 `6 L" |# R  v) Z3 I        Size: 16384 MB; {% g8 [2 B5 b8 Q
        Form Factor: DIMM* J' `0 [4 Y# R- m2 {- ], Z1 {6 t7 x. o
        Set: None- B5 I/ \* W8 m/ h) F" ^
        Locator: PROC 1 DIMM 1: t! M' }; Z/ A/ [
        Bank Locator: Not Specified5 }; y& d3 [2 d" J" r  X  T7 x, x& r
        Type: DDR42 ^2 q) Q' ]$ B! |! @
        Type Detail: Synchronous Registered (Buffered)6 {' p4 Z! \6 ^7 u
        Speed: 2133 MHz
3 B7 ^& W; s* o+ v0 U5 \        Manufacturer: HP     0 V0 o: F: E2 ?* ], z$ x& O
        Serial Number: Not Specified0 y/ w8 w9 U+ v$ t! |
        Asset Tag: Not Specified- H" {8 V, n( h. J5 }1 g4 S* a
        Part Number: 752369-081# X% P8 F. N; J$ [
        Rank: 2, R$ \: N# `: ?$ p
        Configured Clock Speed: 2133 MHz
& B( E4 a  @7 h& A        Minimum Voltage:  1.2 V
3 M4 \5 e$ H! K' |1 X& V! i; Q        Maximum Voltage:  1.2 V# A4 s3 S* B2 U
        Configured Voltage:  1.2 V
! i7 {0 F: W" P1 `  g  r' }1 a复制代码1 k% u  t: v9 b
复制代码% `% U4 d  c- w( ~3 [
(2)最大支持多少内存
" e  e& e: z2 P  m$ _[root@Master ~]# dmidecode|grep -P 'Maximum\s+Capacity'" ]7 J* O9 R" E4 @2 s. n: u

; _/ Q2 W) ~3 F7 j# Z (3)Linux 查看内存的插槽数,已经使用多少插槽.每条内存多大:2 o( |5 u( t: C0 s  C2 h
2 _8 X% @# t7 O! ], |% \* z* m
(4)Linux 查看内存的频率:" {- @3 o0 o( w
[root@Master ~]# dmidecode|grep -A16 "Memory Device"|grep 'Speed'
( ~& c& `& m8 D& I6 h+ ^( `: S" }  _2 x( V
(5)Linux 查看内存的详细信息:
0 L' Y/ e+ ~4 w0 z& R. _复制代码7 \: \1 o7 l" Z
复制代码
9 o' w2 B  E; o  k5 a- p6 Y7 l[root@Master ~]# cat /proc/meminfo |head -20# \8 L) t' |& c9 k# R4 U
MemTotal:       131897620 kB
# i. {8 X9 Y) NMemFree:          414124 kB1 R; S* |2 I$ z
Buffers:         1040560 kB% ?" C  Y3 V% i8 T- V9 _5 c
Cached:         111083180 kB' M) F0 p! ^4 A) H
SwapCached:         1320 kB
( a' r3 z3 \* v9 O9 C' `/ d, a2 kActive:          7637912 kB
. ?8 D/ f! `& ], @Inactive:       110607108 kB  O% t/ K( ]6 V/ f6 }
Active(anon):    4406900 kB
1 K. U1 p, |% UInactive(anon):  1714900 kB0 v- l: i# _5 y) W, e9 O
Active(file):    3231012 kB: t7 J' L) v% @( A3 C' J4 _" x
Inactive(file): 108892208 kB" t& s/ X) N. K# j! J, N$ h- [& U
Unevictable:    10878976 kB
: D; t+ ^" S( |" L; Y6 O/ h+ G, gMlocked:         5521652 kB
; g! t! r* n' i' b4 H$ M7 sSwapTotal:      16777212 kB. m: @( ~& L9 N: o) A
SwapFree:       16737536 kB
3 q( J% ^5 k( \- |Dirty:               180 kB* q- l$ y. O4 h! d
Writeback:             0 kB
  N- |# [1 C. a% v: V& bAnonPages:      16999324 kB  J9 ~. G3 V) n  b, b( V
Mapped:           149020 kB: v7 C4 u) a$ Q3 I
Shmem:               172 kB
4 b1 f1 A( v9 q# q! o0 w复制代码
; c9 L7 ~4 ]4 j+ ^复制代码
" Y7 U; k7 p) O' @9 r4 P! l1 f(6)Linux 查看内存的使用情况7 m8 {5 e/ f5 s, U
[root@Master ~]# free -m    // -b,-k,-m,-g show output in bytes, KB, MB, or GB5 p9 M$ U% b  I1 M
             total       used       free     shared    buffers     cached! i$ N& ~4 W1 _3 a7 V! t
Mem:        128806     123407       5398          0       1015     103474
# N% k/ T- o2 K( Y# y-/+ buffers/cache:      18918     1098886 Z% e: X* j) ]  l* Q
Swap:        16383         38      16345" I1 J. E/ m: L( x

, `, Z) k7 ?3 P* z3 q. c7 S' ] 四、查看硬盘信息
6 v2 l5 S" k9 A; S: x(1)查看挂接的分区状态
5 P1 o' [4 S7 B1 E[root@Master ~]# fdisk -l |grep Disk1 J: p/ _9 j* v8 ^

2 L6 j6 \1 X0 A$ H(2)查看硬盘和分区分布
: D+ K2 R: K# e( n1 Y& G1 g复制代码9 h" z% n9 d9 V- @) o- k( ]* S
复制代码
3 L1 o0 u: D# V; `[root@Master ~]# lsblk
" |' D* s: F6 lNAME   MAJ:MIN RM   SIZE RO TYPE MOUNTPOINT6 W5 ]( b. z8 D" i/ V. Z1 }
sda      8:0    0 279.4G  0 disk 7 X# y$ w( J6 h- @
├─sda1   8:1    0    50M  0 part /boot) t, L* \% [% l, b! y: `
├─sda2   8:2    0   100G  0 part /9 F9 Y: J4 \# g( R  |. R
├─sda3   8:3    0    50G  0 part /home
9 {; ^3 }. r8 t  m4 b: b; S3 ~├─sda4   8:4    0     1K  0 part
* M$ G) z+ c9 m  I2 y# n; ~  h├─sda5   8:5    0    16G  0 part [SWAP]
: b- F3 d1 O8 P├─sda6   8:6    0  13.3G  0 part /tmp
6 E2 B- P7 b# I' Z- p; G└─sda7   8:7    0   100G  0 part /usr4 V; }1 V  q( O
sdb      8:16   0  83.7T  0 disk 3 d& Y1 R- A, X$ N. L7 G  z. g
└─sdb1   8:17   0  83.7T  0 part /PureDisk# T! E" Y/ Y% I$ }
复制代码3 k6 }. s, P$ K# g" ]' O3 ?
复制代码7 R  y/ s) s$ N0 `
(3)查看硬盘和分区的详细信息
9 g5 V" J9 @0 @1 j6 I- _复制代码
$ T2 W! ]3 o; {, P复制代码, O; K' a' w" |: Y
[root@Master ~]# fdisk -l           
# i! W/ o% s# x, T; ], L6 EDisk /dev/sda: 300.0 GB, 299966445568 bytes9 D, Y+ _: M2 C9 j
255 heads, 63 sectors/track, 36468 cylinders$ n9 m3 y! @7 d) ^" n0 e
Units = cylinders of 16065 * 512 = 8225280 bytes3 Q9 E7 o1 Z' k4 c
Sector size (logical/physical): 512 bytes / 512 bytes
: H6 o! Q: l) j3 B$ n( Z# |I/O size (minimum/optimal): 262144 bytes / 262144 bytes
1 o1 ?/ ^, o! J9 f. f9 G5 ZDisk identifier: 0x000384d9/ ?1 E' l" I2 H) X5 p' o% R
   Device Boot      Start         End      Blocks   Id  System, L+ i3 Z' K' {, V
/dev/sda1   *           1           7       51200   83  Linux5 u& z( Q8 \6 m6 U) U7 Q  i
Partition 1 does not end on cylinder boundary.
1 Q- z0 P: S3 `) a) j8 X) n/dev/sda2               7       13061   104857600   83  Linux
) ^6 u: f) e9 n/dev/sda3           13061       19588    52428800   83  Linux/ i$ R2 W& A) Z  g9 S
/dev/sda4           19588       36469   135597056    5  Extended
; |; v/ ^8 |6 y- G0 Y9 A' I/dev/sda5           19588       21677    16777216   82  Linux swap / Solaris5 F5 `0 x% t3 V' ]9 `2 y
/dev/sda6           21677       23415    13962240   83  Linux
$ ]0 `) q% r0 y; W/dev/sda7           23416       36469   104854528   83  Linux
, ?5 F3 x7 ^2 d; C3 UWARNING: GPT (GUID Partition Table) detected on '/dev/sdb'! The util fdisk doesn't support GPT. Use GNU Parted.
; f5 a  T/ |! s" F$ Z; R8 s6 D- x
; y+ q, s0 @; H/ a$ p) O, f, s5 G. N" ZDisk /dev/sdb: 92017.3 GB, 92017310654464 bytes
8 K. c# n# _7 {# Z255 heads, 63 sectors/track, 11187134 cylinders; o9 g5 y* v" C2 p! j
Units = cylinders of 16065 * 512 = 8225280 bytes
' {# w- B. j# B7 `Sector size (logical/physical): 512 bytes / 512 bytes9 c* `" u* r$ e
I/O size (minimum/optimal): 262144 bytes / 6029312 bytes
5 R# d3 U$ a* U9 Q; Z7 ^, jDisk identifier: 0x00000000% z1 ^: ?2 N) S0 F
   Device Boot      Start         End      Blocks   Id  System. d4 o% G  S  X8 ?$ ?
/dev/sdb1               1      267350  2147483647+  ee  GPT5 g  R# X' T" E7 T1 L7 N7 N
Partition 1 does not start on physical sector boundary.8 N% }# G- g; `7 c" U
复制代码* p- a  K' y3 B, H; u! O
复制代码
' S8 _$ Z5 l1 d2 w1 y$ W0 N$ {# Y (4)查看挂接的分区状态
6 A3 i5 a' n% d+ F3 A. {5 B) T复制代码; |5 W/ \: K' T' R
复制代码
( t1 k- F. r- ~1 x[root@Master ~]# mount | column -t+ n; k+ f7 a1 \
/dev/sda2  on  /                         type  ext4         (rw)
% c4 q0 I5 t5 [% d) @( uproc       on  /proc                     type  proc         (rw)
" b1 d# L1 c; w' t; esysfs      on  /sys                      type  sysfs        (rw)
0 ?0 M7 Z/ o% f4 K6 \  D- F) {+ fdevpts     on  /dev/pts                  type  devpts       (rw,gid=5,mode=620)5 J6 |1 q& J% c$ l1 @
tmpfs      on  /dev/shm                  type  tmpfs        (rw)
$ t& M& O1 k" `  C1 l! `4 ?0 G/dev/sda1  on  /boot                     type  ext4         (rw)6 y% ~' D+ E+ G5 F& s. O
/dev/sda3  on  /home                     type  ext4         (rw). \3 [4 D. p( _. \
/dev/sda6  on  /tmp                      type  ext4         (rw)
* V. [1 W4 F$ u3 x) i) [/dev/sda7  on  /usr                      type  ext4         (rw)! u. [+ v, h( \6 [% \
/dev/sdb1  on  /PureDisk                 type  ext4         (rw)8 ?% k/ s- `' @- b; O2 Y4 u
none       on  /proc/sys/fs/binfmt_misc  type  binfmt_misc  (rw
: y  _* c9 M8 [) W复制代码1 v4 S/ r5 A* \' e. i' e
复制代码# D& H  @& M. m. S+ v
(5)查看挂接的分区状态
' K7 k% c; x& G6 l% j[root@Master ~]# swapon -s   
: M( ^4 Q- b3 C; C% W0 VFilename                                Type            Size    Used    Priority
  Y. a6 x' R; N" X. a4 y" Y1 _3 O/dev/sda5                               partition       16777212        39676   -1
) v# s0 @1 p! ?( i (6)查看硬盘使用情况+ r# T% J) x5 _  W% @! P
复制代码
9 l' ~. X: H5 @# P! R% e: @: x( D复制代码9 ^, j3 n1 c& K$ t: X
[root@Master ~]# df -hT
) Y2 f- q8 Q9 Q* G. J1 kFilesystem     Type   Size  Used Avail Use% Mounted on4 O6 \% b' ^# J
/dev/sda2      ext4    99G  561M   93G   1% /+ M; q; H" Q: {, V9 Q- f, u
tmpfs          tmpfs   63G   76K   63G   1% /dev/shm
. w6 Y. Y7 W1 @2 V/dev/sda1      ext4    45M   38M  4.9M  89% /boot
* ?, Z! `7 w3 i0 V/dev/sda3      ext4    50G   52M   47G   1% /home$ ~7 Z" A* C. r# |# A
/dev/sda6      ext4    13G   34M   13G   1% /tmp
7 p$ C7 u$ O9 j# W8 R+ E# f/dev/sda7      ext4    99G   21G   73G  23% /usr3 b- [0 H# I  ^
/dev/sdb1      ext4    84T   41T   40T  51% /PureDisk9 L4 o  l# y+ n9 L% p
复制代码( s% l  e1 G: J* P1 z% ~# K6 y
复制代码
1 b1 M1 }" K% l/ S (7) 硬盘检测命令smartctl, \) ?8 s2 r, U, I
复制代码; A0 [7 ~  K- \0 J
复制代码0 Y9 j0 a+ C: Q! d, k& {
[root@Master ~]# smartctl -a /dev/sda
* m. I: v$ u% Ismartctl 5.43 2012-06-30 r3573 [x86_64-linux-2.6.32-642.el6.x86_64] (local build)
( d( A4 o* R  d% J& TCopyright (C) 2002-12 by Bruce Allen, http://smartmontools.sourceforge.net
6 F, |6 \+ u4 M: C+ ]( GVendor:               HP      % r% p- ^/ e# p  x' i& l% t. {" p
Product:              LOGICAL VOLUME  
% A* a# I; h# B  x- v% @. e! M- [Revision:             3.56
# q- l; q6 b( f+ _User Capacity:        299,966,445,568 bytes [299 GB]
+ m. W' M$ {1 |, P/ K( \: ?& SLogical block size:   512 bytes; s7 ^' G# S1 Y0 [; Z2 S
Logical Unit id:      0x600508b1001cc8a1b9ec4dacc5ab35dc
% t0 o) {% Y9 w1 Z; JSerial number:        PDNNK0BRH9U0AG  
2 Q+ T8 C6 m. c5 t. |3 gDevice type:          disk- V9 \0 ~4 s+ K/ _
Local Time is:        Mon Feb  5 13:13:33 2018 CST- A6 _$ U4 p. d2 R+ O4 @# U$ O. v
Device supports SMART and is Enabled1 ~$ `* y" f" p2 w/ J
Temperature Warning Disabled or Not Supported5 o( H) N. K8 b5 F- l0 F6 H" A
SMART Health Status: OK
* s# t) f) ^+ ?  j* @! T( [) dError Counter logging not supported, D0 G- L1 N- q) W  A2 |+ X9 Q
Device does not support Self Test logging. M, G- v" `7 C+ [# `
复制代码. E+ C# \3 p. @) E2 w
复制代码
/ f$ ]2 M) u' x9 \0 j/ w5 U 0 ?; P) a* f  W+ {5 c
五、查看网卡信息
" Z/ K9 M1 o4 A$ U; \(1)查看网卡硬件信息8 W- c6 z" \$ {' C; w' L
[root@Master ~]#  lspci | grep -i 'eth'; t# ~' i0 p* Z

( [  k+ {) o6 {  a   (2)查看系统的所有网络接口6 z, p* B: W' C0 S( @& i5 Z
[root@Master ~]# ifconfig -a
  Q$ G* ^: r2 Z( t  b7 c[root@Master ~]# ip link show1 B+ H# w4 z* n8 r  M
    (3)查看某个网络接口的详细信息,例如eth0的详细参数和指标
3 ~' ]0 n  E# P4 _& R* w# K$ E复制代码  Z# J, M! M5 o( X- p
复制代码0 U2 r+ [1 l9 a) M0 O$ v
[root@Master ~]# ethtool eth0  n5 _) {5 k) i: h
Settings for eth0:
+ q, t7 |2 x, k- n        Supported ports: [ FIBRE ], s' B' @  b: Z
        Supported link modes:   10000baseT/Full
+ }: l/ U  b$ Y) s' G& O        Supported pause frame use: No
) N+ C: I6 v5 B% y        Supports auto-negotiation: No$ T$ H) L2 X1 d& o
        Advertised link modes:  10000baseT/Full 1 U  d; T, U$ [" j6 u
        Advertised pause frame use: No2 ?8 n. h% @) ?- P
        Advertised auto-negotiation: No8 s. [% S2 ^. X+ b% O+ F
        Speed: 10000Mb/s4 `: P0 p9 _' W7 O
        Duplex: Full
' e& M/ m0 J6 ]. U/ ^        Port: FIBRE! [8 a! M1 y6 n0 M1 d
        PHYAD: 0
. c: M* r9 X" i- U        Transceiver: external
: `" K. N' H" l( R+ h  K        Auto-negotiation: off" Z5 L8 R- z/ c- E! `; m3 C3 B. W
        Supports Wake-on: d
: u+ S; w  Q% ^1 A8 {        Wake-on: d' H5 T* @5 U' p$ s
        Current message level: 0x00000007 (7)
6 H" a$ u/ {4 G& }* f5 N                               drv probe link2 |4 j: V% G  W, r
        Link detected: yes
3 n  Z/ a$ h( ]+ @复制代码. [% i8 {3 F- i1 F
复制代码
4 B; A/ y0 _2 h) n% X+ j    (4)查看所有网卡的链路状态
3 V2 L. I6 T" v% b) i6 x/ {5 e复制代码
& c5 I6 d8 F. g. L* W复制代码
& A* g7 ~6 g. A4 g1 v) o; t[root@Master ~]# for i in `seq 0 9`;do ethtool eth${i} | egrep 'eth|Link';done
' J7 W4 l2 o* D7 z$ `+ U" WSettings for eth0:$ L5 M* }' \2 F. d
        Link detected: yes   
; }' [% Z9 h/ O! ?Settings for eth1:
3 `8 S0 i* C+ Y6 k( I$ D" g        Link detected: yes0 @& }0 s8 i1 ]. ^
Settings for eth2:
. O" ]: I( |3 m) r7 }( d        Link detected: no
8 T9 P: M/ T# _. B6 `+ KSettings for eth3:- U; ^+ `7 R1 y
        Link detected: no
, I1 K  h  Q" P2 L* u9 C: ^2 l) ]Settings for eth4:% w0 _, Y' A, l
        Link detected: no5 K0 g9 m; ^5 G. w# b+ M$ e  i* [
Settings for eth5:
! t* `5 v$ {* Y) V, Y        Link detected: no
4 v" a0 f4 b1 s$ GSettings for eth6:
* e* J, O6 o* I3 x        Link detected: no( {. t: X6 K7 Y" D  d- V/ O* a+ `  l
Settings for eth7:4 E# N2 ?9 G4 W( I9 I3 j7 \# s
        Link detected: no
) N! @( }; M7 U4 s% cSettings for eth8:' S2 i% e$ q6 Q) h: D
        Link detected: no
0 u; S3 m* }/ x8 |8 u( HSettings for eth9:
0 T# c5 [2 K7 a/ }" ^6 t9 b        Link detected: no
9 f1 z$ w# o3 {  x复制代码) l- B5 j, ~5 G5 e2 s
复制代码2 ~7 {+ j" o' a, `0 ?1 N0 D6 j
$ F, M, I) M2 H  Z/ V
六、列出所有PCI设备信息- f9 B  B# L- c2 \, m. _. x
复制代码" D) f4 D, U6 t, u2 }
复制代码
, t( @8 K& k" E$ s[root@Master ~]# lspci -tv | more
0 o4 O7 p/ O* p! L' C( g-+-[0000:ff]-+-08.0  Intel Corporation Xeon E7 v3/Xeon E5 v3/Core i7 QPI Link 09 }1 \8 r9 F/ J4 N$ z
|           +-08.3  Intel Corporation Xeon E7 v3/Xeon E5 v3/Core i7 QPI Link 0
. j) q& N/ y- ]1 |; |  o0 A |           +-09.0  Intel Corporation Xeon E7 v3/Xeon E5 v3/Core i7 QPI Link 13 z. ^$ F$ Z7 h* R0 w
|           +-09.3  Intel Corporation Xeon E7 v3/Xeon E5 v3/Core i7 QPI Link 1
; a- Z6 m8 k$ p0 s& O- V |           +-0b.0  Intel Corporation Xeon E7 v3/Xeon E5 v3/Core i7 R3 QPI Link 0 & 1 Monitoring
4 r0 {7 Z" _% M' h7 C/ a' S" { |           +-0b.1  Intel Corporation Xeon E7 v3/Xeon E5 v3/Core i7 R3 QPI Link 0 & 1 Monitoring
& O2 @" B6 W" ]% ]9 P |           +-0b.2  Intel Corporation Xeon E7 v3/Xeon E5 v3/Core i7 R3 QPI Link 0 & 1 Monitoring" ^. s% Q/ A% a- h
|           +-0c.0  Intel Corporation Xeon E7 v3/Xeon E5 v3/Core i7 Unicast Registers
; t6 h( J( O6 V4 m) E3 ?& a. n  e |           +-0c.1  Intel Corporation Xeon E7 v3/Xeon E5 v3/Core i7 Unicast Registers
. R# ?( j+ ^2 w+ a! o! V) X7 Y |           +-0c.2  Intel Corporation Xeon E7 v3/Xeon E5 v3/Core i7 Unicast Registers
- g0 e3 s2 G; _4 w) A |           +-0c.3  Intel Corporation Xeon E7 v3/Xeon E5 v3/Core i7 Unicast Registers* l* O9 N/ d* X1 N# i8 C
|           +-0c.4  Intel Corporation Xeon E7 v3/Xeon E5 v3/Core i7 Unicast Registers
5 G) Y: V4 @2 Q* A |           +-0c.5  Intel Corporation Xeon E7 v3/Xeon E5 v3/Core i7 Unicast Registers
4 n! C' ~0 u) d& p5 a  s9 [ |           +-0c.6  Intel Corporation Xeon E7 v3/Xeon E5 v3/Core i7 Unicast Registers: [! t4 E7 P: ]$ P/ n" r7 I
|           +-0c.7  Intel Corporation Xeon E7 v3/Xeon E5 v3/Core i7 Unicast Registers* `7 A: f8 x. U3 b: j) N
|           +-0d.0  Intel Corporation Xeon E7 v3/Xeon E5 v3/Core i7 Unicast Registers
5 L- l3 Z0 _7 R+ g/ z |           +-0d.1  Intel Corporation Xeon E7 v3/Xeon E5 v3/Core i7 Unicast Registers
; ^( S3 P  N) M4 T% } |           +-0f.0  Intel Corporation Xeon E7 v3/Xeon E5 v3/Core i7 Buffered Ring Agent
! K3 ~7 Z  D2 Y+ x# _2 @+ e) ^3 x |           +-0f.1  Intel Corporation Xeon E7 v3/Xeon E5 v3/Core i7 Buffered Ring Agent3 {2 o. d! G) I6 e" c. t/ W
|           +-0f.2  Intel Corporation Xeon E7 v3/Xeon E5 v3/Core i7 Buffered Ring Agent* z/ b- J7 U; F9 C
|           +-0f.3  Intel Corporation Xeon E7 v3/Xeon E5 v3/Core i7 Buffered Ring Agent
! Y# z1 j9 `3 h$ x, H9 e0 e复制代码
( v4 c5 F+ F: ^% e( }2 s* E8 N
  {$ y' h$ {0 O# C: h0 G复制代码
8 N0 C! g. i9 Z+ E 4 C3 m% P7 W7 U
end
2 `5 I3 \$ m- N# g4 Q+ e: V. ^; m5 mCentOS 8 U盘安装及Installation Source报错和ssh报错的解决方法
& }; I7 y2 \" U. Q/ b/ {$ T, l
您需要登录后才可以回帖 登录 | 注册

本版积分规则

返回首页|Archiver|手机版|小黑屋|易陆发现技术论坛 ( 蜀ICP备2026014127号-1 )

GMT+8, 2026-6-12 03:02 , Processed in 0.025401 second(s), 22 queries .

Powered by Discuz! X5.0

© 2001-2026 Discuz! Team.

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