//1.编译安装前,安装必要的套件包
yum install -y kernel-devel kernel-headers gcc-c++ make git ncurses-devel autoconf automake libtool
1.源码安装htop
cd /usr/local/src
git clone https://github.com/hishamhm/htop.git
cd htop
./autogen.sh && ./configure && make && make install
//查看是否安装成功
htop
参考
https://github.com/hishamhm/htop.git
CentOS 6.5中安装htop进程管理监控工具