怎样安装系统监控工具 htop

2018年9月18日 | 分类: 【技术】

【介绍】

Htop是一个基于ncurses的交互式Linux系统进程查看器。

参考:http://www.infoq.com/cn/articles/top-htop-glances

【安装(yum)】

参考:https://elearning.wsldp.com/pcmagazine/centos-install-htop/

在CentOS 7环境下:

yum -y install epel-release
yum -y install htop

如果依然报错:

No package htop available. 

那么选择源码编译安装。

【安装(源码)】

下载:https://sourceforge.net/projects/htop/files/latest/download

wget https://jaist.dl.sourceforge.net/project/htop/htop/1.0.2/htop-1.0.2.tar.gz && tar -xzf htop-1.0.2.tar.gz && cd htop-1.0.2 && ./configure && make && make install

如果 configure 时报错:

configure: error: You may want to use --disable-unicode or install libncursesw.

安装:

yum install -y ncurses-devel

【使用】

在命令行中输入:

htop

【参考】

参考:http://www.mamicode.com/info-detail-400355.html
参考:http://www.codesheep.cn/2018/09/18/linux-top-htop-iotop-iftop/