本文介绍安装和使用gotop进行Linux系统进程监控的方法,它是Linux top命令替代方案,是一款基于终端的图形活动监视器,受gtop启发,与用Node.js编写的Gtop不同,gotop是用Golang编写的。你可以通过Linux系统下使用top命令的建议与技巧了解top。

相关链接

在Linux上安装及使用gotop

由于gotop是作为二进制包分发的,除了可以在Linux发行版上轻松安装的git和curl包之外,没有任何先决条件。

在CentOS/Fedora上安装git和curl:

# yum -y install git curl

在Ubuntu/Debian上安装git和curl

# apt-get -y install git curl

Clone gotop,如下:

# git clone git clone --depth 1 https://github.com/cjbassi/gotop.git

Cloning into 'gotop'...

remote: Counting objects: 603, done.

remote: Compressing objects: 100% (460/460), done.

remote: Total 603 (delta 140), reused 463 (delta 123), pack-reused 0

Receiving objects: 100% (603/603), 1.19 MiB | 3.46 MiB/s, done.

Resolving deltas: 100% (140/140), done.

导航到gotop目录并运行自动安装程序脚本:

#