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
本文详细介绍在Centos7.4环境下,通过yum及源码两种方式安装htop的过程。htop作为top的增强版,提供了更丰富的功能和更好的界面展示。文章步骤清晰,包括依赖库安装、源码下载、配置与编译等关键环节。

583

被折叠的 条评论
为什么被折叠?



