centos 安装htop

1、下载最新的htop-.tar.gz;

2、解压 tar -xvf htop-.tar.gz;

3、cd 到解压目录;

4、执行./configure; 如果执行报错   configure: error: You may want to use --disable-unicode or install libncursesw. , 表明缺少lib 包, 安装lib包:yum install ncurses-devel 

然后在执行./configure 

5、执行make&&make install

6、至此htop 应该已经成功安装, 执行 htop , 可以看到本机负载情况:

部分截图如下:

centos 安装htop_第1张图片

你可能感兴趣的:(运维)