1.安装go语言环境

yum install golang

2.安装gotop程序

git clone --depth 1 https://github.com/cjbassi/gotop /tmp/gotop
/tmp/gotop/scripts/download.sh

3.将gotop添加至环境变量目录

cp /tmp/gotop/scripts/gotop /usr/local/bin

5.修改gotop权限

chmod +x /usr/local/bin/gotop

4.运行

gotop

CentOS安装gotop-风君雪科技博客

参考链接:

https://www.ostechnix.com/install-go-language-linux/

https://www.ostechnix.com/gotop-yet-another-tui-graphical-activity-monitor-written-in-go/