1:如何查看服务器的CPU特征及相关参数
a:使cat /proc/cpuinfo命令进行查看
b:也可以用dmesg| grep cpu 查看cpu启动的情况
2查看服务的内存大小及使用情况
a:cat /proc/meminfo
b:free -m
c:top
3查看硬盘的型号及其参数
a:fdisk -l
b:cat /proc/partitions
4:查看网卡等相关信息
dmesg|grep eth0
5:查看有几个CPU
more /proc/cpuinfo | grep "physical id" | uniq| wc -l
6:每个cpu是几核的
more /proc/cpuinfo | grep "physical id"|grep "0"|wc -l
cat /proc/cpuinfo | grep processor
7:查看物理cpu的个数
cat /proc/cpuinfo|grep "physical id"|sort|uniq|wc -l
8:查看逻辑cpu的个数
cat /proc/cpuinfo|grep "processor"|wc -l
9:查看cpu是几核
cat /proc/cpuinfo|grep "cores"|uniq
10:查看cpu的主频
cat /proc/cpuinfo|grep MHZ|uniq
uname -a