linux安装htop来管理进程

linux安装htop来管理进程

2017-07-19 / 0 评论 / 513 阅读 / 正在检测是否收录...
温馨提示:
本文最后更新于2021年10月27日,已超过911天没有更新,若内容或图片失效,请留言反馈。

源安装

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 https://dl.fedoraproject.org/pub/epel/7/x86_64/Packages/e/epel-release-7-13.noarch.rpm
# rpm -ihv epel-release-7-13.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
0

评论 (0)

取消