Htop 是一个非常高级的交互式的实时linux进程监控工具。 它和top命令十分相似,但是它具有更丰富的特性,例如用户可以友好地管理进程,快捷键,垂直和水平方式显示进程等等。 Htop是一个第三方工具,它不包含在linux系统中,你需要使用YUM包管理工具去安装它。
一,以rpm包方式安装htop
1,配置yum源
-------------- For RHEL/CentOS 7 -------------- # wget http://pkgs.repoforge.org/rpmforge-release/rpmforge-release-0.5.3-1.el7.rf.x86_64.rpm # rpm -ivh rpmforge-release-0.5.3-1.el7.rf.x86_64.rpm -------------- For RHEL/CentOS 6 -------------- # wget http://packages.sw.be/rpmforge-release/rpmforge-release-0.5.3-1.el6.rf.x86_64.rpm # rpm -ivh rpmforge-release-0.5.3-1.el6.rf.x86_64.rpm -------------- For RHEL/CentOS 5 -------------- # wget http://packages.sw.be/rpmforge-release/rpmforge-release-0.5.3-1.el5.rf.x86_64.rpm # rpm -ivh rpmforge-release-0.5.3-1.el5.rf.x86_64.rpm
2,安装
# yum -y install htop
二,编译安装
# yum groupinstall "Development Tools" # yum install ncurses ncurses-devel # wget http://hisham.hm/htop/releases/2.0.0/htop-2.0.0.tar.gz # tar zvxf htop-2.0.0.tar.gz # cd htop-2.0.0 # ./configure --prefix=/usr/local/ # make # make install
# htop
本文出自 “珞辰的博客” 博客,请务必保留此出处http://luochen2015.blog.51cto.com/9772274/1765379
原文地址:http://luochen2015.blog.51cto.com/9772274/1765379