htop 是一個 Linux 下的互動式的程式瀏覽器,可以用來替換Linux下的top命令。
1、安裝HTop時需要先安裝依賴包:rpmforge-release-0.5.3-1.el6.rf.x86_64.rpm
wget http://rpmfind.net/linux/dag/redhat/el7/en/x86_64/dag/RPMS/rpmforge-release-0.5.3-1.el7.rf.x86_64.rpm
rpm -ivh rpmforge-release-0.5.3-1.el7.rf.x86_64.rpm
2、然後使用yum安裝即可:
yum -y install htop
3、編譯安裝下載地址:http://hisham.hm/htop/releases/
[root@mycentos ~]# tar zxvf htop-2.2.0.tar.gz [root@mycentos ~]# cd htop-2.2.0 [root@mycentos ~]# yum -y install ncurses-devel [root@mycentos ~]# yum -y install gcc [root@mycentos ~]# ./configure [root@mycentos ~]# make [root@mycentos ~]# make instal