linux安装htop来管理进程

dhso
2017/07/19 10:22
统计中

源安装

On RHEL/CentOS – 32-bit OS

-------------- For RHEL/CentOS 6 --------------
# wget http://download.fedoraproject.org/pub/epel/6/i386/epel-release-6-8.noarch.rpm
# rpm -ihv epel-release-6-8.noarch.rpm
-------------- For RHEL/CentOS 5 --------------
# wget http://download.fedoraproject.org/pub/epel/5/i386/epel-release-5-4.noarch.rpm
# rpm -ihv epel-release-5-4.noarch.rpm

On RHEL/CentOS – 64-bit OS

-------------- For RHEL/CentOS 7 --------------
# wget http://dl.fedoraproject.org/pub/epel/7/x86_64/e/epel-release-7-10.noarch.rpm
# rpm -ihv epel-release-7-10.noarch.rpm 
-------------- For RHEL/CentOS 6 --------------
# wget http://download.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm
# rpm -ihv epel-release-6-8.noarch.rpm
-------------- For RHEL/CentOS 5 --------------
# wget http://download.fedoraproject.org/pub/epel/5/x86_64/epel-release-5-4.noarch.rpm
# rpm -ihv epel-release-5-4.noarch.rpm

添加好源后执行安装

# yum install htop

On Fedora OS

# yum install htop
# dnf install htop      [On Fedora 22+ releases]

On Debian and Ubuntu

# sudo apt-get install htop

编译安装

On RHEL/CentOS and Fedora

# yum groupinstall "Development Tools"
# yum install ncurses ncurses-devel
# wget http://hisham.hm/htop/releases/2.0.2/htop-2.0.2.tar.gz
# tar xvfvz htop-2.0.2.tar.gz
# cd htop-2.0.2

On Debian and Ubuntu

$ sudo apt-get install build-essential  
$ sudo apt-get install libncurses5-dev libncursesw5-dev
$ wget http://hisham.hm/htop/releases/2.0.2/htop-2.0.2.tar.gz
$ tar xvfvz htop-2.0.2.tar.gz
$ cd htop-2.0.2

下载好了源码之后编译安装

# ./configure
# make
# make install

运行htop

htop

本文为 dhso 原创

发布在 http://blog.minws.com/linuxan-zhuang-htoplai-guan-li-jin-cheng/

如有转载,请标明来源!

作者信息
姓名:dhso
热评文章
最新评论
文章概览