原文网址:https://www.youyong.top/article/1158e0774156
可以通过本文如下方法查看云服务器 ECS Linux 系统的 CPU、内存相关信息:
原文网址:https://www.youyong.top/article/1158e0774156
可以通过本文如下方法查看云服务器 ECS Linux 系统的 CPU、内存相关信息:
原文网址:https://www.youyong.top/article/1158e0774156
说明:
1. 查看物理 CPU 个数
cat /proc/cpuinfo| grep "physical id"| sort| uniq| wc -l
2. 查看每个物理 CPU 中 core 的个数(即核数)
cat /proc/cpuinfo| grep "cpu cores"| uniq
3. 查看逻辑 CPU 的个数
cat /proc/cpuinfo| grep "processor"| wc -l
4. 查看 CPU 信息(型号)
cat /proc/cpuinfo | grep name | cut -f2 -d: | uniq -c
5. 查看内存信息
cat /proc/meminfo
共 0 条留言