- 积分
- 16843
在线时间 小时
最后登录1970-1-1
|
马上注册,结交更多好友,享用更多功能,让你轻松玩转社区。
您需要 登录 才可以下载或查看,没有账号?开始注册
x
CentOS 8和7版本对比" R+ i* @& P. ] c7 B h3 G5 M/ @
7 `+ ?; E& T& A) x% s功能 CentOS 8 CentOS 7
# S9 C; E( i" A ]2 U! k5 ~( K1 d内核版本 4.18.0-x 3.10.0-x
4 l( A u2 H6 Q) M2 B, F- Z文件系统 XFS XFS
4 V0 U# _, Y$ s3 _9 N# Y1 D" w时间同步 只支持Chronyd 支持NTP和Chronyd
1 z" g2 g2 X6 W% D# h文件大小 8EB 500TB2 p" Z6 i! R5 g% [7 X8 S
文件系统大小 1PB 500TB
, |1 [2 m3 j, K% Z& X包管理工具 DNF(YUM v4) YUM(YUM v3)( L6 u; N9 j) d2 O9 M
最大内存 24TB 12TB/ Z5 J3 t8 m& \1 A9 a% B6 s) t
防火墙 nftables取代iptables firewalld底层使用iptables
5 [. b/ T. M7 o支持架构 支持64-bit ARM 不支持64-bit ARM) C) i* U! c4 H4 K; i5 J% _+ ?
网络管理 默认安装Cockpit 无默认安装
, X2 |$ D' c: e ~% Y' E4 q6 b7 `" _CPU日志 CPU日志记录在journald进程中 CPU相关日志位于/var/log/cups目录
% c; y* v6 L, d3 f发布时间 2019-09-24 2014-07-07
. O, K ]9 ~. _ ]8 q完整更新 2024-05-01 2020-08-06
5 ^$ D0 X& @% o" Q( C& m支持IPv6 支持 Ready Logo Phase 25 x! I6 w2 E& J. p4 d$ k
Git 2.18 1.7. S* Z6 S. A( U
GCC 8.2.1 4.8.5& \/ A6 ? R2 q# k) }7 w, }* L- s% W
Python 3.6.6 2.7.5
- r8 ~0 v8 W O4 @/ W+ FGlibc 2.28 2.17
8 M A* z% H" s$ ~Boost 1.66 1.539 ?; W/ s7 r5 }
LLVM/Clang 6.0 5.0- _1 @- g! B# I0 y( N# w9 W7 G9 v4 E
d2 T. h+ D& s0 E
Linux查看硬件信息命令
& }$ @# T3 J! }" M7 J一、查看服务器硬件信息3 P' W9 Q# ?. P' K$ h. z
(1)查看服务器型号、序列号
% L2 ~; M4 T5 o( e% p: g; C- M8 c[root@Master ~]# dmidecode|grep "System Information" -A9|egrep "Manufacturer|Product|Serial" 9 W" t" A$ l T0 @$ s9 k
y1 j0 Z# C' e w& [
(2)查看主板型号7 `: J" r# \& B5 A
[root@Master ~]# dmidecode |grep -A16 "System Information$" * r9 s. t- ?% d- ]
. |! ~- c; s& q* w1 l5 s0 Z: k8 f
(3)查看BIOS信息
2 d! O, ^" Y x0 |复制代码) h* A& ]2 q8 \5 q
复制代码
4 X4 Z: ]$ B. d7 |7 D[root@Master ~]# dmidecode -t bios
1 E- u& u8 _) Z6 V# dmidecode 2.12, R' N" ?1 C/ R0 v5 Q- @: N, y7 R
SMBIOS 2.8 present.) ~5 ], ~, [- s) e, e" _4 F
Handle 0x0008, DMI type 0, 24 bytes. L6 T; c# n% T' p. o
BIOS Information/ K( D) C+ ^& s5 j. Y
Vendor: HP
$ q9 F% C; W h4 E a* r& D0 d; F Version: U19" n8 W$ ^* O1 \7 `+ H
Release Date: 12/27/2015 b1 E: |& @' ^5 _% M" v" Q
Address: 0xF0000
% h' i# G7 L8 S' o) l9 b Runtime Size: 64 kB
9 U8 z# f# s9 O/ c; N* Z ROM Size: 16384 kB0 O( r% m$ `: C8 p
Characteristics:
- y. }7 t, K e PCI is supported
# O7 s% Q( c4 O* ^, i3 z PNP is supported. c4 [' |" L6 \8 p% L3 @/ ~
BIOS is upgradeable2 B" o. A( S) J0 t7 o
BIOS shadowing is allowed! f' H; J! j8 U2 o/ `* ]! Z1 J) u
ESCD support is available4 M1 T0 m P1 Y" Q- o& {
Boot from CD is supported: l9 b" |9 O2 u0 ?
Selectable boot is supported
9 I6 ~5 j" b0 N- l2 g EDD is supported
: p2 C5 Z' |2 ^1 S1 P% Q 5.25"/360 kB floppy services are supported (int 13h)
J9 [! Y% o, O0 e8 x9 P! p 5.25"/1.2 MB floppy services are supported (int 13h)4 H! T, h: \9 k1 y2 g
3.5"/720 kB floppy services are supported (int 13h)- h, j4 ~) K3 z$ N! ?7 t4 j2 v: W
Print screen service is supported (int 5h)' T9 W- P u, j$ {) }: F: n
8042 keyboard services are supported (int 9h)
9 i- u. H/ {+ M! T) e Serial services are supported (int 14h)- u0 d: J' B' y" f) _1 @7 i% Z
Printer services are supported (int 17h)
0 u4 o# L4 g. q" ]0 b( N! ] CGA/mono video services are supported (int 10h)
4 S# ~% C' o6 M) l3 W ACPI is supported
2 e% Y( q$ p; b4 x/ F USB legacy is supported M7 A+ p# i" ?
BIOS boot specification is supported
* }9 S/ C0 _. x! f P Function key-initiated network boot is supported
) ~3 l& k" _3 g9 A Targeted content distribution is supported
7 i1 L7 _7 p6 x( M. r- j! O UEFI is supported6 ~( O+ F5 S8 V4 l+ f0 `
BIOS Revision: 2.0
2 U% Q$ S* P. [ [, Y# S. |+ Q Firmware Revision: 2.40
) p7 Q5 _* S. I( x- l/ J复制代码
" P- {+ ]+ f3 t& Q( N, m5 D复制代码* x; P2 [% j" {% W
(3)查看内存槽及内存条
, o5 p, V; n& c! E复制代码4 E8 @6 }- }# z2 @# E
复制代码
7 q- q( u4 H3 ~6 n7 n[root@Master ~]# dmidecode -t memory | head -45 | tail -23" F/ \* m2 y/ O! m- N
Memory Device
$ |4 f; a0 o8 {; G Array Handle: 0x000A
6 Z5 T% W. N8 D. |* l Error Information Handle: Not Provided) ~" v8 D0 D; S5 [- j0 n
Total Width: 72 bits; V e- Y# p1 |' s b( m
Data Width: 64 bits& {) k0 V7 W0 d4 M' ~2 Y2 f
Size: 16384 MB8 _$ A! ?( N: T+ E l
Form Factor: DIMM
! W2 a {. \: `9 ^9 P Set: None
# A" X; J# g( ?# ~2 v Locator: PROC 1 DIMM 1* V3 n3 R( h }" H/ r( N
Bank Locator: Not Specified( f3 V) Y( k( F& G9 N7 I
Type: DDR47 B: k0 E4 |/ D. p; v: r- S
Type Detail: Synchronous Registered (Buffered)) ?" r# C8 D( i: m
Speed: 2133 MHz
8 Y$ L. w* Z8 \- o- B# f% v* ? Manufacturer: HP 4 c: T4 W0 M( ]$ D0 }& D
Serial Number: Not Specified! Z9 G$ {% z! I
Asset Tag: Not Specified
5 E7 R$ Q# N/ Y2 `/ o4 R+ v5 W Part Number: 752369-081* C1 t( K7 B7 r- Y! R ~2 ~: I3 _
Rank: 21 | _/ x# I' F5 j7 V' q
Configured Clock Speed: 2133 MHz4 s$ n+ `3 g! a0 J' Z
Minimum Voltage: 1.2 V
$ U4 i8 h4 c2 E% O6 c Maximum Voltage: 1.2 V& W( l2 x$ a) H2 f5 J/ ?
Configured Voltage: 1.2 V
5 k( ~8 P7 G R1 V2 ~! ~[root@Master ~]#( ~5 P% H* A/ [3 G
复制代码& H& J) D) ?7 v" b3 K
复制代码
7 w$ f; i0 t/ k (4)查看网卡信息1 \ t3 j2 B1 V: G% @* Y
复制代码% b" ?7 B4 \ [9 E r1 l
复制代码4 h8 N' v4 g) ?/ B& @- [
[root@Master ~]# dmesg | grep -i Ethernet5 w8 V! g- K e/ X8 r1 L8 T% c _0 g
igb: Intel(R) Gigabit Ethernet Network Driver - version 5.3.0-k
+ u! ~: \/ z S; V4 Higb 0000:04:00.0: Intel(R) Gigabit Ethernet Network Connection
- R7 b! G' _% P2 q) F9 N0 a* qigb 0000:04:00.1: Intel(R) Gigabit Ethernet Network Connection2 }0 Q2 `6 P' Z W$ j2 h6 U
igb 0000:04:00.2: Intel(R) Gigabit Ethernet Network Connection
" |, p6 d& X4 w3 c$ Figb 0000:04:00.3: Intel(R) Gigabit Ethernet Network Connection' L) v4 J( w0 h! @1 E* W* @% o. F
igb 0000:02:00.0: Intel(R) Gigabit Ethernet Network Connection) ~* d# y) e/ Z& Q
igb 0000:02:00.1: Intel(R) Gigabit Ethernet Network Connection " N2 C5 ~6 I" h: @, K& O M& X
复制代码& G4 g( Z5 r" \# [
复制代码9 O. }, S: k6 X O4 [0 Y
(5) 查看pci信息,即主板所有硬件槽信息
* P3 {. _* I2 J( a( @ }复制代码
6 p9 D! S, _( H$ c6 K/ H复制代码4 u1 x4 I8 q6 V x% e) [
[root@Master ~]# lspci | head -10
2 L0 x8 l0 s# k( g) X00:00.0 Host bridge: Intel Corporation Xeon E7 v3/Xeon E5 v3/Core i7 DMI2 (rev 02)3 I" j' @* j5 w- m5 O. S2 s
00:01.0 PCI bridge: Intel Corporation Xeon E7 v3/Xeon E5 v3/Core i7 PCI Express Root Port 1 (rev 02)
* |* G1 }0 R0 H/ n00:01.1 PCI bridge: Intel Corporation Xeon E7 v3/Xeon E5 v3/Core i7 PCI Express Root Port 1 (rev 02)
! i; J* |9 i; P- r00:02.0 PCI bridge: Intel Corporation Xeon E7 v3/Xeon E5 v3/Core i7 PCI Express Root Port 2 (rev 02)
6 i. ~' m! C ~4 W( z% R4 V0 H6 J; x- n00:02.1 PCI bridge: Intel Corporation Xeon E7 v3/Xeon E5 v3/Core i7 PCI Express Root Port 2 (rev 02)7 ~ U/ ]/ [4 ?$ {! {% N9 ]2 D
00:02.2 PCI bridge: Intel Corporation Xeon E7 v3/Xeon E5 v3/Core i7 PCI Express Root Port 2 (rev 02)2 p6 r u$ ?# {: o
00:02.3 PCI bridge: Intel Corporation Xeon E7 v3/Xeon E5 v3/Core i7 PCI Express Root Port 2 (rev 02)
& x" k, O8 e* P00:03.0 PCI bridge: Intel Corporation Xeon E7 v3/Xeon E5 v3/Core i7 PCI Express Root Port 3 (rev 02)/ I$ {2 Z$ a; V+ o" }% y
00:03.1 PCI bridge: Intel Corporation Xeon E7 v3/Xeon E5 v3/Core i7 PCI Express Root Port 3 (rev 02)8 \7 M3 W/ [5 d9 f1 p t
00:03.2 PCI bridge: Intel Corporation Xeon E7 v3/Xeon E5 v3/Core i7 PCI Express Root Port 3 (rev 02)% K9 Y( z' y4 E/ M' s' O0 V ~6 c
复制代码 p6 `& R$ h& o1 S0 A0 S
复制代码
B d$ W# R# e
& `; h( Q8 i. ~, T' i8 V- R二、查看CPU信息
$ ^: I: {0 q6 R(1)查看cpu型号
|( _) N d/ p[root@Master ~]# cat /proc/cpuinfo | grep name | cut -f2 -d: | uniq -c
8 k( h# E% E" Z+ U 40 Intel(R) Xeon(R) CPU E5-2650 v3 @ 2.30GHz5 H6 S4 q/ T- A7 }4 M/ _! K, C) Y5 l
(2)查看系统中实际物理CPU的数量(物理)% Z, h( R' u& z& U4 b
[root@Master ~]# grep 'physical id' /proc/cpuinfo | sort | uniq | wc -l
% x& {' D$ h8 C% @# g" ?5 j2
8 G# `$ [; L% F8 V& x(3)系统中实际物理CPU的数量(核数)
; {9 h) M1 g/ ^$ X; r1 S[root@Master ~]# cat /proc/cpuinfo |grep 'processor'|wc -l: S* D9 [8 [" q7 P1 z. \7 t1 t
40
: N5 ]' ~% a$ |6 b (4)查看每个物理CPU中core的个数(即核数)
2 Q, J% _2 m& S `' @/ y! x+ y[root@Master ~]# cat /proc/cpuinfo |grep "cores"|uniq
1 ?8 d) a# C8 t: w& Ycpu cores : 10
, R" F9 G. ~$ i7 B(5)查看CPU的主频
8 h' S) O; J# m, b' k, Q& B[root@Master ~]# cat /proc/cpuinfo |grep MHz|uniq 7 u; A$ g# O- Z& Z% C
cpu MHz : 1200.000
2 ?" B1 j" i' e- ?( U1 hcpu MHz : 2300.000* d( v8 O) ]& T
cpu MHz : 1200.000
1 p7 H [, ~* V) j; j) `(6)查看CPU的详细信息
: v2 V, J# G# l- L0 K$ ~复制代码
. c7 u- p3 L3 ]+ x& \; \3 Z复制代码
# Y& S; f0 p8 ^ V+ K+ H" t, a; o( U[root@Master ~]# cat /proc/cpuinfo | head -20# _: s# Q5 T$ R" x$ }# V
processor : 0 //逻辑处理器的ID& G) ^/ Q7 @& _2 _
vendor_id : GenuineIntel( U* {$ {% Y3 P d' t& U
cpu family : 6
" B0 z0 r4 w# J; @' p0 `4 smodel : 63# j( q8 o) q) }2 }$ i" \
model name : Intel(R) Xeon(R) CPU E5-2650 v3 @ 2.30GHz //CPU型号- e" X3 _- x! m- l8 K. \6 B
stepping : 2- Z4 c' Q: G" X: k: n5 {
microcode : 54
8 d A" C& W; T( ccpu MHz : 1200.0002 u* r! W& [1 R( ~5 l- M" [
cache size : 25600 KB
4 l/ F6 D$ z6 s( t: t4 bphysical id : 03 W5 H/ S9 K/ T6 v* [
siblings : 20 //相同物理封装处理器中逻辑处理器数, \$ c9 A+ k( v- D1 D! @( x0 u0 r
core id : 0
* }/ w" p* O) r; X+ S: _* Xcpu cores : 10 //相同物理封装处理器中的内核数5 S) o6 { I" [, H7 ]' J% V
apicid : 0
8 Z- ~( k* w+ Uinitial apicid : 0$ w6 d6 w+ B, r
fpu : yes
5 j8 N( f& A8 W! r: l' a7 U/ r2 I% X8 @fpu_exception : yes" T7 t" ~: g( w3 k% z. G B
cpuid level : 15: s* T% k" F; W
wp : yes
9 W0 A3 _2 ~5 V/ g% q; cflags : 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
9 Y* o) E" m+ O5 M; T+ h7 C复制代码) k, L6 ?! _- m% F% Q
复制代码5 ]1 A4 _. |# z# @7 D
(7)查看CPU的相关信息
% A9 a0 O# z1 v+ M( w0 T: m* ~复制代码8 k9 z# C: L& U7 J( Q
复制代码
) V9 i9 b8 u: s[root@Master ~]# lscpu
) V# }2 y, C' I1 D7 W2 l" [& dArchitecture: x86_64
6 o9 \, h( q. ~- w# Z6 cCPU op-mode(s): 32-bit, 64-bit5 j1 D1 \9 b7 c# J# g6 r: P1 B
Byte Order: Little Endian
% s& `9 I' W' ?9 TCPU(s): 40
# r0 y1 i3 x3 j3 V" Z/ r" G5 o/ QOn-line CPU(s) list: 0-39# S+ J+ m9 O7 W* M
Thread(s) per core: 29 k7 B3 V7 R5 R" w9 H
Core(s) per socket: 10
0 R8 r0 K( [+ ~* Z3 p) PSocket(s): 2
) W5 b; _- W% ?7 F t5 m5 x4 X) Q) lNUMA node(s): 2
% g- B* O" b/ t3 U0 aVendor ID: GenuineIntel
! u8 X2 l( ^; h3 E& u; k0 dCPU family: 6: ^5 y! B* o6 a" p+ J
Model: 63 M5 Z! b+ `9 N+ F& `/ C6 k
Model name: Intel(R) Xeon(R) CPU E5-2650 v3 @ 2.30GHz
8 e( y/ t9 ?5 g; V5 K# C, @0 V! ?3 sStepping: 20 R7 i5 M7 g, [2 A- _4 X( ^
CPU MHz: 1200.000% c+ p) c% W0 |) t. B4 Q" [9 T- c
BogoMIPS: 4594.43- ]# H, c. ~: k8 ?. t
Virtualization: VT-x: O/ c6 |! o& M* J9 z) a2 E5 X8 E
L1d cache: 32K! }+ B& u* n, R& w: h2 V
L1i cache: 32K
' G" e3 P2 h/ Q* E5 I4 F) qL2 cache: 256K! [3 p0 ^7 T3 L" \7 Z
L3 cache: 25600K
, C( K& O U7 s) u5 {& @, `NUMA node0 CPU(s): 0-9,20-29
3 L% C _# D6 @5 E- x6 P8 KNUMA node1 CPU(s): 10-19,30-39
- k2 l& u5 Y0 p[root@Master ~]# ) D. D9 v- V0 B' ^2 U6 g) I
复制代码/ | Y3 ]+ K; @' h
复制代码2 h' k( L7 P! j: F/ A6 `
(8)查看cpu运行模式
0 j4 S- I5 c) T[root@Master ~]# getconf LONG_BIT2 }& T/ i; J* R" o
64
" X/ R7 R p& t8 C, F: U (9)查看cpu是否支持64bit
* @: @) o6 ?+ O0 f7 A; M$ s[root@Master ~]# cat /proc/cpuinfo | grep flags | grep ' lm ' | wc -l
! U2 ^2 W' N+ z$ W403 R8 I, B+ i) P
(结果大于0, 说明支持64bit计算. lm指long mode, 支持lm则是64bit)
; f7 A( `1 A' Z1 E3 Z9 F0 y , F4 \$ Z' g5 }# |" \
三、查看内存信息
( J5 Z% \% ~4 Y(1)查看内存硬件信息
0 w* o% K4 R" y7 E+ ]0 p$ K" Z% c1 O复制代码
5 G) l* E0 a1 l+ j; M6 W复制代码9 n. |5 Z, G7 b* l' P
root@Master ~]# dmidecode -t memory | head -45 | tail -24
\/ s, |$ r, MHandle 0x000C, DMI type 17, 40 bytes8 p! E- E( e5 ~* {
Memory Device. a- y& K0 R& M. q7 D: [6 C
Array Handle: 0x000A
6 T. e0 s& |( u: m, B; S2 [! z Error Information Handle: Not Provided
% X; j$ `$ M+ J3 j/ E' @) n7 U Total Width: 72 bits4 z/ t- V) D1 G# R& L1 b
Data Width: 64 bits/ o6 s7 {9 ~* b5 S' T2 L
Size: 16384 MB
% z8 Y" n2 H: y }$ q( _ Form Factor: DIMM
2 [1 j, L' v; ]' ]0 v& U5 ^ Set: None( Z4 x/ A: J; a3 D/ f) M0 w0 X
Locator: PROC 1 DIMM 1
% e1 {6 H: O/ B- d% [% L Bank Locator: Not Specified+ T0 X& @& ]$ D: s; J0 d: Z
Type: DDR4
0 m0 U' \. D' d Type Detail: Synchronous Registered (Buffered)
2 P; s( ^' X M% q- H b5 q4 E8 t& v Speed: 2133 MHz
5 ~3 p C. C% I Manufacturer: HP ! L, @4 M/ l) U4 X2 s
Serial Number: Not Specified' ]3 k5 G) x( ~" h" G
Asset Tag: Not Specified
( i& d6 U; A/ S! ]1 r. N* v Part Number: 752369-081
! w P. X o ~, P- I: n3 A Rank: 2- N: j) N# f" H/ D* o- w" ]
Configured Clock Speed: 2133 MHz
F3 G: g: E9 ? Minimum Voltage: 1.2 V8 t" B5 A! ^. k# n. I; F) o+ @! @
Maximum Voltage: 1.2 V
! W0 w9 p$ ?2 j% V. ~% l Configured Voltage: 1.2 V
" {- i6 }+ F. R" C( E复制代码
' `# _' C+ S3 L% [$ |复制代码
" ]* R9 R8 W9 U1 d: F- Y (2)最大支持多少内存) p2 S! e' ? w
[root@Master ~]# dmidecode|grep -P 'Maximum\s+Capacity'- \( ]9 H* g7 d7 E0 D" h- c. b
: Y. a5 ], T9 V% [- \ (3)Linux 查看内存的插槽数,已经使用多少插槽.每条内存多大:
& R7 m, O& M5 o* S5 \9 z
+ X* ~0 `( J/ B' Y* N (4)Linux 查看内存的频率:
0 Y) M1 q* O( b5 M9 I[root@Master ~]# dmidecode|grep -A16 "Memory Device"|grep 'Speed'0 j( z+ n- R! C, }/ [' {0 F
9 V% e r+ W* E2 ]8 {% [
(5)Linux 查看内存的详细信息:( z1 _$ a0 V9 v8 n% O
复制代码
* o% t3 I9 _% |# L# B" \2 g: u) a复制代码
2 M" }+ W: ~. c8 f. C[root@Master ~]# cat /proc/meminfo |head -209 f* h3 \2 ~% W
MemTotal: 131897620 kB
" n1 O; w" i* S8 L7 XMemFree: 414124 kB
* z/ E5 c$ M2 x, CBuffers: 1040560 kB* j8 f: f. g/ G1 b
Cached: 111083180 kB
7 c- `! o3 [1 {" C" USwapCached: 1320 kB: C* G% Q+ Y4 @$ `9 r9 ? ?
Active: 7637912 kB1 A }3 S/ n! p: ~( b6 `' f
Inactive: 110607108 kB
8 D/ m. k0 u+ E7 x: N" @* e; BActive(anon): 4406900 kB
1 i- F& H }2 Y( SInactive(anon): 1714900 kB6 P. y9 \& w: I% K8 p$ L
Active(file): 3231012 kB
5 W% d2 E' P- jInactive(file): 108892208 kB, @" N5 c3 M2 m# b. b
Unevictable: 10878976 kB
' k d. ]4 z' o7 U6 VMlocked: 5521652 kB
# ^: v% y+ |/ S2 p8 k: X) aSwapTotal: 16777212 kB
1 |7 M o9 V7 r6 NSwapFree: 16737536 kB
, I! ?- U: A+ p; l/ oDirty: 180 kB
% V* W/ d# E, k! e" c3 mWriteback: 0 kB
* b# j& y% B* \; c" S! @AnonPages: 16999324 kB9 P4 ]2 h1 O& \
Mapped: 149020 kB- x4 j/ W3 W# b6 C! V( y& c$ P
Shmem: 172 kB3 ~2 f# p( O% c" m, D7 v: `' V8 P) X
复制代码
7 W8 y1 f, j& L, s8 O4 W2 E复制代码
5 R- h5 u5 G# `(6)Linux 查看内存的使用情况
: u+ c- V4 [& |$ d/ E( d l[root@Master ~]# free -m // -b,-k,-m,-g show output in bytes, KB, MB, or GB! k/ c8 S/ `! ?8 b' ?" A" H
total used free shared buffers cached/ I" d2 a6 S0 u F9 Z+ u: m
Mem: 128806 123407 5398 0 1015 103474
3 Z- C- z3 b7 C+ n$ S, r+ W# S0 \6 U( F# w-/+ buffers/cache: 18918 109888
( N9 Z6 I% T" p( K0 F( dSwap: 16383 38 16345
8 x! \. Q2 k; p
# y, d: C! i* H; J+ l# y( C5 e! l 四、查看硬盘信息
' X o% E/ P! q T(1)查看挂接的分区状态
- @# G4 X7 @; ]) U/ \8 m[root@Master ~]# fdisk -l |grep Disk- X3 U9 E" ~$ p u2 n* T
' y( B0 R! T* I(2)查看硬盘和分区分布
; g' H6 i& t6 }! b J复制代码
h. l6 h8 \" t1 C& d复制代码0 O) k7 `! {4 s( }3 g1 _. w1 L
[root@Master ~]# lsblk
% ]/ @4 w+ [" y0 b8 ~2 HNAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT$ N! F4 F& G& M) d' {( {
sda 8:0 0 279.4G 0 disk / J% f2 V. Y8 J/ k& _+ `$ E4 C' F
├─sda1 8:1 0 50M 0 part /boot- R% u* V1 ~& f
├─sda2 8:2 0 100G 0 part /; x/ k$ Y( V. I" O; Q% a
├─sda3 8:3 0 50G 0 part /home
1 z; [( F) P" |$ u2 l├─sda4 8:4 0 1K 0 part 4 O9 R4 P/ U) E) w3 ^
├─sda5 8:5 0 16G 0 part [SWAP]
4 Q; ^: Q1 [/ r+ H├─sda6 8:6 0 13.3G 0 part /tmp: s# {0 ]0 k2 L( ]
└─sda7 8:7 0 100G 0 part /usr
7 G2 n0 F: ]8 \- E4 Nsdb 8:16 0 83.7T 0 disk
9 y9 o$ y- x3 c. B! U. Q; z J8 [└─sdb1 8:17 0 83.7T 0 part /PureDisk A+ q/ r/ D; ?2 C$ r3 Q5 D
复制代码/ E7 z+ T% m) t8 X
复制代码
% b- \/ X( w6 W9 ]8 _8 b9 t (3)查看硬盘和分区的详细信息7 T) d2 m0 @. q8 ]& r
复制代码
* n5 a# c. j9 \7 M1 [复制代码6 G$ P" U1 U& ~6 V; p: l2 w! k
[root@Master ~]# fdisk -l
, K' x+ y$ s/ ]7 x/ ~6 x8 sDisk /dev/sda: 300.0 GB, 299966445568 bytes( ]) A4 j- y2 T/ I
255 heads, 63 sectors/track, 36468 cylinders6 P' c( k' y$ Q k
Units = cylinders of 16065 * 512 = 8225280 bytes/ J, L* f! P* n
Sector size (logical/physical): 512 bytes / 512 bytes& V1 D! ?& c+ e9 ~
I/O size (minimum/optimal): 262144 bytes / 262144 bytes
& a+ o0 }5 Z+ I9 v7 r5 s* c& MDisk identifier: 0x000384d9
) K) F( ^6 O$ D3 V Device Boot Start End Blocks Id System
* ^1 N. @# }3 o6 c/dev/sda1 * 1 7 51200 83 Linux
4 N$ [$ t% r+ B$ pPartition 1 does not end on cylinder boundary.% z+ m4 E2 d- W' t, W: `. f
/dev/sda2 7 13061 104857600 83 Linux
1 v' q/ `, S/ E, x9 `) p/dev/sda3 13061 19588 52428800 83 Linux: h3 O% G/ f# d; I9 J+ y4 {
/dev/sda4 19588 36469 135597056 5 Extended
2 \1 q% p$ A. X6 F0 M q/dev/sda5 19588 21677 16777216 82 Linux swap / Solaris8 L7 v& `# p* S; n
/dev/sda6 21677 23415 13962240 83 Linux( [ ]) j' D/ i! A8 c7 p7 @; ?, K
/dev/sda7 23416 36469 104854528 83 Linux& V6 E) U8 ]2 W- N: N# p
WARNING: GPT (GUID Partition Table) detected on '/dev/sdb'! The util fdisk doesn't support GPT. Use GNU Parted.& i% f* ^; T6 z" q: D. G) G
4 q* H0 P# F$ {, N! o" K
Disk /dev/sdb: 92017.3 GB, 92017310654464 bytes
" f0 B+ Q! J# S: r255 heads, 63 sectors/track, 11187134 cylinders
) D) e, v3 l) ?* S, h5 B! U) G5 ^5 MUnits = cylinders of 16065 * 512 = 8225280 bytes
. u' z" _% U! K3 N6 FSector size (logical/physical): 512 bytes / 512 bytes
% J5 s0 C/ E' KI/O size (minimum/optimal): 262144 bytes / 6029312 bytes, J" `( ]/ ]1 }$ Y) n$ u# l* F6 q! d8 g
Disk identifier: 0x00000000
) p5 o: M+ _$ K1 v- o Device Boot Start End Blocks Id System; o9 k. A1 T8 F) |6 \7 I( k
/dev/sdb1 1 267350 2147483647+ ee GPT+ D6 u. L$ Y0 _+ A/ {
Partition 1 does not start on physical sector boundary.
4 o6 a! R8 p$ u w, C- w; _复制代码
* W5 o( _" F/ \' G复制代码
% H, P% ?, W, M# E3 T (4)查看挂接的分区状态
1 q, E. E# U! m3 q- M* K; m1 v复制代码
; e. J5 x2 i; L+ v复制代码
8 e. _$ z$ [% N0 w0 {4 i7 k$ ?[root@Master ~]# mount | column -t9 _4 @2 n) _+ i
/dev/sda2 on / type ext4 (rw)+ K0 a: w+ I; i: J* U! s" @5 J4 X
proc on /proc type proc (rw)
0 A* e; p' X& E; psysfs on /sys type sysfs (rw)8 l, }! I' h# o9 Y' q/ O0 C f
devpts on /dev/pts type devpts (rw,gid=5,mode=620)
9 d# n1 J2 c' c1 Gtmpfs on /dev/shm type tmpfs (rw)
! v+ D: b6 c" o3 b. V& H. q/dev/sda1 on /boot type ext4 (rw)
; ]6 ?( @, V& W/dev/sda3 on /home type ext4 (rw)
7 h. G3 r1 Y4 t L; J; r% M/dev/sda6 on /tmp type ext4 (rw)
~" L* k* ?, v$ Q/dev/sda7 on /usr type ext4 (rw)0 p' ?2 B9 _) D2 }$ c- ~0 [- R0 Q
/dev/sdb1 on /PureDisk type ext4 (rw)" E( ~/ Z+ j7 ~3 f! P& ^1 e
none on /proc/sys/fs/binfmt_misc type binfmt_misc (rw: I$ ~6 U$ `# K9 j' T! d& z% ]5 W
复制代码8 d* i& Y" {9 X3 m, y( O9 j" ~. c
复制代码" {5 Z T+ o4 z3 @4 u
(5)查看挂接的分区状态
/ W* ?! V6 _$ J' j! }[root@Master ~]# swapon -s % A+ O1 j; P7 F, S4 E: R; q6 N
Filename Type Size Used Priority
4 H& k% V5 o6 K: k# Q5 ?3 r/dev/sda5 partition 16777212 39676 -1+ Z8 }; v% _- W
(6)查看硬盘使用情况
4 q. m9 G3 t: S$ B0 I% G' l复制代码
9 f. }: n* i4 u) Y6 K4 Y7 c复制代码
' V! S" S3 \/ I[root@Master ~]# df -hT
! B$ u+ [, M$ C' QFilesystem Type Size Used Avail Use% Mounted on! M8 H6 w3 a S9 h- A1 J! b
/dev/sda2 ext4 99G 561M 93G 1% /
1 k; X* ? s9 D' g0 @tmpfs tmpfs 63G 76K 63G 1% /dev/shm) J2 q2 W M9 h" ^; e- b+ p
/dev/sda1 ext4 45M 38M 4.9M 89% /boot
# P3 y& S" R% A8 r- l/dev/sda3 ext4 50G 52M 47G 1% /home
0 Z7 V. h* m% C9 h* h3 N/dev/sda6 ext4 13G 34M 13G 1% /tmp7 T; `% ]+ y0 C( X. T
/dev/sda7 ext4 99G 21G 73G 23% /usr$ m9 v/ I4 i! ~ A( t5 k- L7 v
/dev/sdb1 ext4 84T 41T 40T 51% /PureDisk
: N3 j0 S& J8 c复制代码( e2 y( S: i5 w4 ^3 ]- f% b, `
复制代码$ U3 P) K& M% n7 ], F4 r; J0 [8 q3 }
(7) 硬盘检测命令smartctl
1 Q/ t( t$ f: N; ~/ G* n复制代码- {1 {& z6 w" P' Z
复制代码
9 J4 v/ G- I, f+ a5 C. A& {/ t7 s[root@Master ~]# smartctl -a /dev/sda. S* y' l) _7 Z. z2 J) ?2 E
smartctl 5.43 2012-06-30 r3573 [x86_64-linux-2.6.32-642.el6.x86_64] (local build)/ n B5 V. K8 H1 J' S; _+ l) ?
Copyright (C) 2002-12 by Bruce Allen, http://smartmontools.sourceforge.net6 P" f% e6 y# h& W
Vendor: HP , }2 a) U' q( S$ u; z& K
Product: LOGICAL VOLUME
; a( J8 g* @7 y- r* `; a1 t! oRevision: 3.56% @$ m4 h: @8 l- w- `% C
User Capacity: 299,966,445,568 bytes [299 GB]
6 w% |/ w& R2 D% [. X7 j! DLogical block size: 512 bytes
! N# _8 s, q% U9 |- ^Logical Unit id: 0x600508b1001cc8a1b9ec4dacc5ab35dc
# d3 S2 A. o, O6 JSerial number: PDNNK0BRH9U0AG . f# [) ~5 o0 a0 O1 g! _
Device type: disk$ h9 j( j" B9 N8 g
Local Time is: Mon Feb 5 13:13:33 2018 CST
4 n+ p6 f0 D) b# hDevice supports SMART and is Enabled
7 `' k7 B8 ^( W0 U7 y0 STemperature Warning Disabled or Not Supported" b/ L$ _0 z) C, T4 a% n4 j
SMART Health Status: OK) |* w$ e2 `- T4 u. H; U
Error Counter logging not supported
& n t. }' W# ^+ WDevice does not support Self Test logging
: Z& f: {' H5 d7 T# f2 H1 ]2 B7 ]复制代码
" i. Z( J/ x$ a5 I$ \! `2 T复制代码
' h1 V; D5 |* N9 e4 h
$ c5 e; \- W5 D五、查看网卡信息' [$ c/ q! c" Y" t/ z T8 G
(1)查看网卡硬件信息 r3 a6 c4 r4 |6 y2 B5 f
[root@Master ~]# lspci | grep -i 'eth'
* A) s- b1 F& T" v( h) L
. m$ ~6 V$ N. x$ ?' Q) j (2)查看系统的所有网络接口
. q7 u; B& H0 S0 v4 h[root@Master ~]# ifconfig -a/ N/ M' Y. o8 c: |* [
[root@Master ~]# ip link show
`" Z: T: ?& t2 s (3)查看某个网络接口的详细信息,例如eth0的详细参数和指标
8 h# _3 u$ D# d A复制代码9 V) f2 t* |2 M2 m. V
复制代码! ^, b* g5 | j1 a8 z b2 k
[root@Master ~]# ethtool eth0
/ _/ M0 c( g6 S+ g! A; ?Settings for eth0:4 ?; s# H+ ]: M5 l
Supported ports: [ FIBRE ]
3 p2 T2 U% `2 c; d$ i Supported link modes: 10000baseT/Full
; P7 b: G$ X( A( a7 Q2 A( k Supported pause frame use: No
/ B% e( K. Z$ _. a, O) N2 P+ f Supports auto-negotiation: No- \3 N/ n3 ^$ {2 N4 X9 F6 v
Advertised link modes: 10000baseT/Full ; K. Q0 `0 w5 F
Advertised pause frame use: No r. z* t; N' H n
Advertised auto-negotiation: No
0 W. N( }# X& z% L% I' c2 r9 ~& v Speed: 10000Mb/s; D* ? T6 O7 `/ ^6 Z; {
Duplex: Full
. ^$ ]0 V X! H" ]( R& @* ~1 O Port: FIBRE4 i2 j: S2 i+ t* F' W0 j
PHYAD: 0
" i9 i) S/ ~) p/ h' w9 r0 O Transceiver: external
& r) V3 l( r0 j/ m Auto-negotiation: off" }( j- _) ?3 ]1 ^! W6 P/ e' Q
Supports Wake-on: d7 Y% k# S5 S5 v) W, _4 Y p& f' C
Wake-on: d
. `4 f1 [9 y, Y: t! X8 p: A5 q4 P Current message level: 0x00000007 (7)
$ J# n" r O# j/ J3 U drv probe link
+ M+ s# \6 _6 {& K# \ Link detected: yes
9 e3 _' e' M7 k" R6 w复制代码, Z; Z. d# U2 }: z0 G! E( W
复制代码
! h! A1 P# d% A, n. ? (4)查看所有网卡的链路状态
# [! n! T5 d. f) f v& B复制代码
7 i9 W5 I+ M8 j1 y6 L! o- y复制代码# _1 f: w ?& C( d
[root@Master ~]# for i in `seq 0 9`;do ethtool eth${i} | egrep 'eth|Link';done* D/ @, n; a' v
Settings for eth0:$ u9 t- _! _# r0 V5 u1 @
Link detected: yes
, f! A$ w& J% F4 |; aSettings for eth1:
1 _- L: v7 k! s: c6 E Link detected: yes
) |( o3 H# }7 x6 ?5 h6 USettings for eth2:) W; m8 |0 d" p: m) J
Link detected: no! V( W$ \" V! u
Settings for eth3:2 B3 \, G& K n: q+ t& a1 `' y
Link detected: no( J0 h# q; J% z t. y. q
Settings for eth4:
9 b' m- O1 i: e- h; X4 ^2 Q0 c Link detected: no% v% {! n; j2 u4 u' X# C
Settings for eth5:7 a0 ~4 }2 z* \7 U' @# \' f
Link detected: no
, o# b2 L0 Y- c" Q8 t* B! {) ZSettings for eth6:" i7 d/ e( E; G
Link detected: no; `' ?/ A% S( @$ w$ q% r
Settings for eth7:
0 n5 o, ^* A& ^; k: g4 g Link detected: no
/ r# v/ ]8 C$ m; }9 sSettings for eth8:1 A; c' j; B2 A* `) g+ [2 z
Link detected: no& Y2 E% t5 V. d
Settings for eth9:1 s h; b* ?7 x6 {6 N6 G/ J
Link detected: no
; D1 ^9 l- C" p" z7 B复制代码
1 o( y3 ?& B, e- q/ J: F* L复制代码
/ o4 O- K9 Z5 T } . m2 D3 l1 c1 Q3 \" J
六、列出所有PCI设备信息
5 _6 M3 G @" x5 B复制代码
% h7 F0 C& w6 C1 ?/ J复制代码
/ r8 Q- l. z4 ~[root@Master ~]# lspci -tv | more
4 v+ N, J* i. Y-+-[0000:ff]-+-08.0 Intel Corporation Xeon E7 v3/Xeon E5 v3/Core i7 QPI Link 08 t) _" f7 h: z9 a/ `5 @' T# J
| +-08.3 Intel Corporation Xeon E7 v3/Xeon E5 v3/Core i7 QPI Link 0
7 Y4 Y4 M" y$ |: _" \ e a K | +-09.0 Intel Corporation Xeon E7 v3/Xeon E5 v3/Core i7 QPI Link 14 w! G7 r8 q$ H" [
| +-09.3 Intel Corporation Xeon E7 v3/Xeon E5 v3/Core i7 QPI Link 1
. f5 k1 r2 Y( g* W0 J | +-0b.0 Intel Corporation Xeon E7 v3/Xeon E5 v3/Core i7 R3 QPI Link 0 & 1 Monitoring
6 r) |2 e: y, X8 E5 V6 n1 Y1 e | +-0b.1 Intel Corporation Xeon E7 v3/Xeon E5 v3/Core i7 R3 QPI Link 0 & 1 Monitoring J0 F9 w3 c V1 p8 S" z, E
| +-0b.2 Intel Corporation Xeon E7 v3/Xeon E5 v3/Core i7 R3 QPI Link 0 & 1 Monitoring+ u4 x% V% n% J1 ]3 k8 x
| +-0c.0 Intel Corporation Xeon E7 v3/Xeon E5 v3/Core i7 Unicast Registers
5 d2 K; V% ~4 a* Z/ l, F1 i | +-0c.1 Intel Corporation Xeon E7 v3/Xeon E5 v3/Core i7 Unicast Registers
7 A. I% K2 R+ f | +-0c.2 Intel Corporation Xeon E7 v3/Xeon E5 v3/Core i7 Unicast Registers$ k. m6 u- L9 e9 H Y( u+ Y' f( |
| +-0c.3 Intel Corporation Xeon E7 v3/Xeon E5 v3/Core i7 Unicast Registers
+ ]: @4 h7 y- P9 D8 S | +-0c.4 Intel Corporation Xeon E7 v3/Xeon E5 v3/Core i7 Unicast Registers
# z- [2 y4 C- Y/ V" X | +-0c.5 Intel Corporation Xeon E7 v3/Xeon E5 v3/Core i7 Unicast Registers3 b; C5 r. o6 r( H5 {
| +-0c.6 Intel Corporation Xeon E7 v3/Xeon E5 v3/Core i7 Unicast Registers1 w' h" v6 R( N/ j+ {- u
| +-0c.7 Intel Corporation Xeon E7 v3/Xeon E5 v3/Core i7 Unicast Registers
0 _7 ]3 a9 ^6 @" U | +-0d.0 Intel Corporation Xeon E7 v3/Xeon E5 v3/Core i7 Unicast Registers
: g2 L% ?0 Z" f A. N5 k c1 D | +-0d.1 Intel Corporation Xeon E7 v3/Xeon E5 v3/Core i7 Unicast Registers
3 N( j* Z3 T" s | +-0f.0 Intel Corporation Xeon E7 v3/Xeon E5 v3/Core i7 Buffered Ring Agent
9 A3 Q% k, G7 ]* d" Y- @ | +-0f.1 Intel Corporation Xeon E7 v3/Xeon E5 v3/Core i7 Buffered Ring Agent+ ~2 _8 S. A7 Y4 J
| +-0f.2 Intel Corporation Xeon E7 v3/Xeon E5 v3/Core i7 Buffered Ring Agent; F6 S3 {: l8 T# x. ?; ~5 X
| +-0f.3 Intel Corporation Xeon E7 v3/Xeon E5 v3/Core i7 Buffered Ring Agent9 q8 [0 g9 _3 Y1 ^) f( k
复制代码/ H6 N, W; ^' u5 ~
. w$ [: f* o0 _! X7 Y
复制代码
) X2 A4 ]) m/ }: f0 e# p9 Q 7 l" T( S2 r" y& |5 q
end2 P$ [: C9 D$ K7 w7 H7 n' ~
CentOS 8 U盘安装及Installation Source报错和ssh报错的解决方法
/ X6 j% e) s1 C. \- s w+ a/ l |
|