一、监控系统资源
类似top,监控一些占用状态,监控3次,间隔5秒
[root@localhost /]# vmstat 5 3
procs -----------memory---------- ---swap-- -----io---- --system-- -----cpu-----
r b swpd free buff cache si so bi bo in cs us sy id wa st
0 0 0 644532 23580 1050096 0 0 98 36 22 34 0 0 99 0 0
0 0 0 644484 23580 1050096 0 0 0 0 22 26 0 0 100 0 0
0 0 0 644484 23580 1050096 0 0 0 0 24 29 0 0 100 0 0
二、开机时内核监测信息
[root@localhost /]# dmesg | grep CPU
SMP: Allowing 128 CPUs, 127 hotplug CPUs
NR_CPUS:4096 nr_cpumask_bits:128 nr_cpu_ids:128 nr_node_ids:1
PERCPU: Embedded 31 pages/cpu @ffff88000c400000 s96600 r8192 d22184 u131072
CPU: Physical Processor ID: 0
mce: CPU supports 0 MCE banks
三、查看系统位数
[root@localhost /]# file /bin/ls
/bin/ls: ELF 64-bit LSB executable, x86-64, version 1 (SYSV), dynamically linked (uses shared libs), for GNU/Linux 2.6.18, stripped
四、查看系统发行版本
lsb_release 是查看系统版本信息的工具
[root@localhost ~]# lsb_release -a
-bash: lsb_release: command not found解决方法:yum install redhat-lsb -y