查看物理CPU个数: sysctl hw.physicalcpu 2. 查看逻辑CPU个数: sysctl hw.logicalcpu 3.查看硬件信息总揽: system_profiler SPHardwareDataType