命令1 (查看有几个CPU):cat /proc/cpuinfo |grep "physical id"|sort |uniq|wc -l
命令2 (每个CPU几核):cat /proc/cpuinfo |grep "cores"|uniq
核数:两个结果相乘 *_*