Centos7.4安裝htop


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


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM