topplot 是 Munge 从上到下记录到有用的图表
介绍
在本教程中我们学习如何安装 topplot
在 Ubuntu 21.04。
什么是 topplot
topplot 生成从顶部日志中获取的信息图表。 它可以选择要关注的进程,并且可以按 cpu 核心拆分信息(如果 top 配置为记录 cpu 核心列,和/或按核心显示 cpu 摘要信息)。 topplot 可以将图形保存为 PNG 文件。 它还可以将从日志中派生的信息打印到标准输出,无论是否发出图形。 可能有更好、更有效的方法来收集实时系统信息,但如果由于某种原因您有数十万行顶级日志并且您想查看其中的内容,topplot 可以提供帮助。
有三种安装方式 topplot
在 Ubuntu 21.04。 我们可以用 apt-get
, apt
和 aptitude
。 在以下部分中,我们将描述每种方法。 您可以选择其中之一。
使用 apt-get 安装 topplot
更新 apt 数据库 apt-get
使用以下命令。
更新apt数据库后,我们可以安装 topplot
使用 apt-get
通过运行以下命令:
sudo apt-get -y install topplot
使用 apt 安装 topplot
更新 apt 数据库 apt
使用以下命令。
更新apt数据库后,我们可以安装 topplot
使用 apt
通过运行以下命令:
sudo apt -y install topplot
使用 aptitude 安装 topplot
如果您想遵循此方法,您可能需要先安装 aptitude,因为 aptitude 通常不会默认安装 Ubuntu。 更新 apt 数据库 aptitude
使用以下命令。
更新apt数据库后,我们可以安装 topplot
使用 aptitude
通过运行以下命令:
sudo aptitude -y install topplot
如何卸载 topplot Ubuntu 21.04
仅卸载 topplot
打包我们可以使用以下命令:
sudo apt-get remove topplot
卸载topplot及其依赖项
卸载 topplot
及其不再需要的依赖项 Ubuntu 21.04,我们可以使用以下命令:
sudo apt-get -y autoremove topplot
删除 topplot 配置和数据
去除 topplot
配置和数据来自 Ubuntu 21.04我们可以使用以下命令:
sudo apt-get -y purge topplot
删除 topplot 配置、数据及其所有依赖项
我们可以使用下面的命令来删除 topplot
配置、数据及其所有依赖项,我们可以使用以下命令:
sudo apt-get -y autoremove --purge topplot
参考
概括
在本教程中我们学习如何安装 topplot
使用不同的包管理工具,如 apt、apt-get 和 aptitude。