如何在CentOS7和Ubuntu 18.04中安装Gtop

本文提供在CentOS 7和Ubuntu 18.04上安装Gtop的详细步骤。Gtop是一个命令行系统监控工具,展示系统资源如CPU、内存、网络等的实时状态。安装过程包括添加EPEL存储库、安装NodeJS和npm,然后使用npm安装Gtop。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

Gtop is a command-line system monitoring tool that displays in a graph format, a plethora of system metrics such as running processes, CPU utilization, network bandwidth, memory Usage, swap space, and Hard Disk usage. In this guide, you will learn how to install Gtop in Centos7 and Ubuntu 18.04.

Gtop是一种命令行系统监视工具,它以图形格式显示大量系统指标,例如正在运行的进程,CPU利用率,网络带宽,内存使用率,交换空间和硬盘使用率。 在本指南中,您将学习如何在Centos7和Ubuntu 18.04中安装Gtop。

在CentOS 7中安装Gtop (Installation of Gtop in CentOS 7)

The first step in installing Gtop on CentOS 7 is to install the epel repository. EPEL is short for Extra Packages for Enterprise Linux. As the name suggests, it ships extra packages and dependencies required for smooth running of applications.

在CentOS 7上安装Gtop的第一步是安装epel存储库。 EPEL是企业Linux额外软件包的缩写。 顾名思义,它附带了平稳运行应用程序所需的额外软件包和依赖项。

# yum install epel-release

Sample output

样品输出

Next, install NodeJS. NodeJS is a powerful Javascript platform used for the development of powerful applications. To install NodeJS execute the command

接下来,安装NodeJS。 NodeJS是用于开发功能强大的应用程序的功能强大的Javascript平台。 要安装NodeJS,请执行以下命令

# yum install nodejs

Sample output

样品输出

Next, install npm package manager as shown

接下来,安装npm软件包管理器,如下所示

# yum install npm

Finally, install gtop using the npm package manager.

最后,使用npm软件包管理器安装gtop。

# npm install gtop -g

Sample output

样品输出

To launch gtop and view the system’s metrics run.

要启动gtop并查看系统的指标运行。

# gtop

在Ubuntu 18.04中安装Gtop ( Installation of Gtop in Ubuntu 18.04 )

Just like in CentOS 8, begin by installing NodeJS on Ubuntu.

就像在CentOS 8中一样,首先在Ubuntu上安装NodeJS

# sudo apt install nodejs

Sample output

样品输出

To check the version of NodeJS installed, run

要检查已安装的NodeJS版本,请运行

node --version

Sample output

样品输出

Next, install npm package Manager using the command as shown

接下来,使用如下命令安装npm package Manager

# sudo apt install npm

Using npm install the Gtop monitoring tool

使用npm安装Gtop监控工具

npm install gtop -g

Sample output

样品输出

Finally, launch Gtop

最后,启动Gtop

gtop

翻译自: https://www.journaldev.com/29387/install-gtop-centos-ubuntu

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值