当前位置: 首页 > 工具软件 > GTOP > 使用案例 >

如何在CentOS7和Ubuntu 18.04中安装Gtop

袁奇文
2023-12-01

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

 类似资料: