//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進程管理監控工具