温馨提示×

debian cpustat在哪找

小樊
37
2026-09-28 19:19:10
栏目: 智能运维

在 Debian 系统里,cpustat 通常来自 sysstat 包(也有单独叫 cpustat 的工具,但更常见的是 mpstat / sar 等来自 sysstat)。

1. 最常见情况:sysstat 提供的工具

Debian 中并没有直接叫 cpustat 的命令(除非你装了特定工具),你可能指的是:

  • mpstat:查看 CPU 使用率
  • sar:系统活动报告

安装方法:

sudo apt update
sudo apt install sysstat

使用:

mpstat 1
sar -u 1

2. 如果你确实想要叫 cpustat 的命令

有一个独立的工具叫 cpustat(由 packit 项目或某些仓库提供):

sudo apt install cpustat

然后运行:

cpustat

如果 apt 找不到:

apt search cpustat

3. 检查是否已经安装

which cpustat
which mpstat
dpkg -l | grep cpustat

总结

  • 想看 CPU 使用情况 → 装 sysstat,用 mpstat
  • 明确要 cpustat 命令 → apt install cpustat

如果你是在某篇文档或脚本里看到 cpustat,可以把出处发我,我帮你确认到底是哪一个。

0 踩