一、以yum方式安装
1、yum -y install epel-release.noarch
2、yum -y install htop
二、源码方式安装
1、安装gcc、内核库依赖库
yum install -y gcc ncurses-deve
2、下载源码
wget http://sourceforge.net/projects/htop/files/latest/download
3、解压并进入htop-1.0.2目录
tar -zxf download
cd htop-1.0.2
4、编译安装(执行./configure如果执行报错 configure: error: You may want to use --disable-unicode or install libncursesw,表明缺少lib 包,安装lib包:yum install ncurses-devel -y)
./configure && make && make install
5、运行
htop
标签:管理器,configure,centos,yum,htop,install,安装 From: https://www.cnblogs.com/nanfei/p/16728478.html