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

相关文章:

  • 2021-04-28
  • 2021-09-23
  • 2021-10-04
  • 2021-09-06
  • 2022-01-01
  • 2021-04-08
猜你喜欢
  • 2022-02-08
  • 2021-07-07
  • 2021-05-27
  • 2022-12-23
  • 2021-07-30
  • 2021-12-23
  • 2021-10-20
相关资源
相似解决方案