linux环境htop安装

发布时间 2024-01-13 20:58:10作者: swore

1、获取htop源码包

git clone https://github.com/htop-dev/htop

2、安装依赖

yum install ncurses-devel gcc

3、解压源码包,编译安装

 ./configure

 make -j 8

make install

 

-----------------------------------------------------------------------------------------------

-------------------------------源码安装方式----------------------------------------------

安装支持的组件

wget http://ftp.gnu.org/pub/gnu/ncurses/ncurses-5.9.tar.gz
tar zxvf ncurses-5.9.tar.gz
cd ncurses-5.9
. /configure
make
make install
安装htop
wget http: //sourceforge .net/projects/htop/files/htop/1.0.2/htop-1.0.2.tar.gz
tar zxvf htop-1.0.2.tar .gz
cd htop-1.0.2
. /configure
make