htop是top的“加強版本”,功能與顯示界面自然優於top
環境:Centos7.4
一、以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
