1.cpu个数:
[root@localhost ~]# cat /proc/cpuinfo |grep "physical id"|sort|uniq|wc -lcpu核心数:
[root@localhost ~]# cat /proc/cpuinfo |grep "cpu cores"|uniq
2.内存信息:
[root@localhost ~]# cat /proc/meminfo |grep MemTotal
3.磁盘信息: