linux檢視伺服器配置資訊
伺服器型號
[root@txs ~]# dmidecode|grep "System Information" -A9|egrep "Manufacturer|Product"
作業系統
-
[root@txs ~]# cat /etc/redhat-release
-
.CentOS release 6.5 (Final)
檢視作業系統發行版詳細資訊
[root@txs ~] # lsb_release -a
CPU
檢視CPU統計資訊
[root@txs ~]# lscpu
檢視CPU型號
[root@txs ~]# cat /proc/cpuinfo | grep name | cut -f2 -d: | uniq -c
檢視物理CPU個數
[root@txs ~]# cat /proc/cpuinfo| grep "physical id"| sort| uniq| wc -l
2
檢視每個物理CPU中core的個數(即核數)
[root@txs ~]# cat /proc/cpuinfo| grep "cpu cores"| uniq
cpu cores : 6
檢視邏輯CPU的個數
[root@txs ~]# cat /proc/cpuinfo| grep "processor"| wc -l
12
記憶體
檢視概要記憶體使用情況
[root@txs ~]# free -m
total used free shared buffers cached
Mem: 31996 12142 19854 0 193 512
-/+ buffers/cache: 11435 20561
Swap: 0 0 0
檢視記憶體硬體資訊
[root@txs ~]# dmidecode -t memory
# dmidecode 2.11
SMBIOS 2.8 present.
# SMBIOS implementations newer than version 2.7 are not
# fully supported by this version of dmidecode.
Handle 0x1000, DMI type 16, 23 bytes
Physical Memory Array
Location: System Board Or Motherboard
Use: System Memory
Error Correction Type: Multi-bit ECC
Maximum Capacity: 1536 GB
Error Information Handle: Not Provided
Number Of Devices: 24
Handle 0x1100, DMI type 17, 40 bytes
Memory Device
Array Handle: 0x1000
Error Information Handle: Not Provided
Total Width: 72 bits
Data Width: 64 bits
Size: 16384 MB
Form Factor: DIMM
Set: 1
Locator: A1
Bank Locator: Not Specified
Type: <OUT OF SPEC>
Type Detail: Synchronous Registered (Buffered)
Speed: 2133 MHz
Manufacturer: 00CE00B300CE
Serial Number: 157E9AD8
Asset Tag: 00161330
Part Number: M393A2G40DB0-CPB
Rank: 2
Configured Clock Speed: 1600 MHz
Handle 0x1101, DMI type 17, 40 bytes
Memory Device
Array Handle: 0x1000
Error Information Handle: Not Provided
Total Width: Unknown
Data Width: Unknown
Size: No Module Installed
Form Factor: Unknown
Set: 1
Locator: A2
Bank Locator: Not Specified
Type: Unknown
Type Detail: None
Speed: Unknown
Manufacturer: Not Specified
Serial Number: Not Specified
Asset Tag: Not Specified
Part Number: Not Specified
Rank: Unknown
Configured Clock Speed: Unknown
............
檢視記憶體詳細使用情況
[root@txs ~]# cat /proc/meminfo
MemTotal: 32764900 kB
MemFree: 20329452 kB
Buffers: 198584 kB
Cached: 524936 kB
SwapCached: 0 kB
Active: 2448636 kB
Inactive: 244748 kB
Active(anon): 1970020 kB
Inactive(anon): 4 kB
Active(file): 478616 kB
Inactive(file): 244744 kB
Unevictable: 0 kB
Mlocked: 0 kB
SwapTotal: 0 kB
SwapFree: 0 kB
Dirty: 80 kB
Writeback: 0 kB
AnonPages: 1969864 kB
Mapped: 41344 kB
Shmem: 160 kB
Slab: 9497576 kB
SReclaimable: 9435936 kB
SUnreclaim: 61640 kB
KernelStack: 7376 kB
PageTables: 12232 kB
NFS_Unstable: 0 kB
Bounce: 0 kB
WritebackTmp: 0 kB
CommitLimit: 16382448 kB
Committed_AS: 3205448 kB
VmallocTotal: 34359738367 kB
VmallocUsed: 347172 kB
VmallocChunk: 34341191224 kB
HardwareCorrupted: 0 kB
AnonHugePages: 1783808 kB
HugePages_Total: 0
HugePages_Free: 0
HugePages_Rsvd: 0
HugePages_Surp: 0
Hugepagesize: 2048 kB
DirectMap4k: 7168 kB
DirectMap2M: 2015232 kB
DirectMap1G: 31457280 kB
檢視記憶體的插槽數,已經使用多少插槽.每條記憶體多大
[root@txs ~]# dmidecode|grep -A5 "Memory Device"|grep Size|grep -v Range
Size: 16384 MB
Size: No Module Installed
Size: No Module Installed
Size: No Module Installed
Size: No Module Installed
Size: No Module Installed
Size: No Module Installed
Size: No Module Installed
Size: No Module Installed
Size: No Module Installed
Size: No Module Installed
Size: No Module Installed
Size: 16384 MB
Size: No Module Installed
Size: No Module Installed
Size: No Module Installed
Size: No Module Installed
Size: No Module Installed
Size: No Module Installed
Size: No Module Installed
Size: No Module Installed
Size: No Module Installed
Size: No Module Installed
Size: No Module Installed
硬碟
檢視硬碟和分割槽分佈
[root@txs ~]# lsblk
NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT
sda 8:0 0 557.8G 0 disk
├─sda1 8:1 0 200M 0 part /boot
├─sda2 8:2 0 32G 0 part /swap
└─sda3 8:3 0 525.6G 0 part /
sr0 11:0 1 1024M 0 rom
[root@txs ~]# df -h
Filesystem Size Used Avail Use% Mounted on
/dev/sda3 518G 5.8G 486G 2% /
tmpfs 16G 0 16G 0% /dev/shm
/dev/sda1 194M 34M 151M 19% /boot
/dev/sda2 32G 176M 30G 1% /swap
相關文章
- Linux 安全資訊檢視Linux
- git檢視config配置資訊Git
- 檢視 Linux 系統資訊Linux
- 檢視Linux系統版本資訊Linux
- Linux系統如何檢視版本資訊Linux
- Linux檢視相關係統資訊Linux
- Linux檢視環境變數當前資訊和檢視命令Linux變數
- Linux 中檢視 DNS 與 配置LinuxDNS
- Linux下檢視、新增及配置Linux
- LINUX 檢視硬體配置命令Linux
- 如何檢查linux伺服器配置Linux伺服器
- linux下使用tomcat檢視控制檯資訊LinuxTomcat
- Linux系統glibc庫版本資訊檢視Linux
- linux檢視電腦硬體配置Linux
- 轉:Linux檢視GPU資訊和使用情況LinuxGPU
- Linux根據程式號,檢視相關資訊Linux
- 華納雲:linux怎麼檢視nvme硬碟資訊?Linux硬碟
- Linux系統中如何檢視塊裝置資訊?Linux
- Linux 系統下檢視硬體資訊命令大全Linux
- Linux中常用的檢視系統資訊的命令Linux
- win10系統怎麼檢視電腦配置 檢視電腦配置資訊的詳細方法Win10
- Linux 伺服器硬碟使用情況檢視Linux伺服器硬碟
- linux檢視伺服器狀態命令--lsloadLinux伺服器
- linux 檢視伺服器的連線數Linux伺服器
- Linux系統檢視硬體具體型號資訊Linux
- 檢視weblogic版本資訊Web
- uptime命令檢視Linux伺服器健康狀態Linux伺服器
- 檢視Linux系統資訊都有哪些命令?Linux學會有什麼用Linux
- 在Linux中,如何檢視當前系統的版本資訊?Linux
- Linux系統如何檢視網路卡的資訊及數量?Linux
- Git檢視指定commit資訊GitMIT
- kafka 檢視佇列資訊Kafka佇列
- ExifTool for Macexif資訊檢視工具Mac
- 檢視Docker容器的資訊Docker
- Linux 下檢視系統當前登入使用者資訊Linux
- 檢視伺服器型號、記憶體槽位、磁碟等資訊伺服器記憶體
- 如何在Linux上檢視和配置密碼時效Linux密碼
- 檢視無線網路卡資訊