[关闭]
@cdmonkey 2017-04-11T06:09:44.000000Z 字数 1295 阅读 1205

htop

命令总结


http://sourceforge.net/projects/htop/
http://www.cnblogs.com/mchina/archive/2013/03/15/2858041.html
http://hisham.hm/htop/

  1. [root@Node-A1 ~]# yum install -y htop

Install htop 2.0.2

首先需要安装必要的依赖包:

  1. yum install -y automake ncurses-devel

另外还需要编译安装autoconf 2.64或是更高的版本。

  1. # 如果需要卸载旧版,可运行下面的指令:
  2. rpm -e --nodeps autoconf-2.63
  3. # Install:
  4. [root@kvm-test tools]# cd autoconf-2.69
  5. ./configure --prefix=/usr/
  6. make && make install
  7. --------------------
  8. # 安装完成后检查版本:
  9. [root@kvm-test ~]# /usr/bin/autoconf -V
  10. autoconf (GNU Autoconf) 2.69
  11. ...

比较操蛋的是,还需要安装libtool 2.4.0或是更高的版本。

  1. # 如果需要卸载旧版,可运行下面的指令:
  2. rpm -e libtool-2.2.6-15.5.el6.x86_64
  3. # Install:
  4. [root@kvm-test tools]# cd libtool-2.4.6
  5. ./configure --prefix=/usr
  6. make && make install
  7. --------------------
  8. # 安装完成后检查版本:
  9. [root@kvm-test ~]# /usr/bin/libtool --version
  10. libtool (GNU libtool) 2.4.6
  11. ...

编译安装最新版。

  1. [root@kvm-test tools]# git clone https://github.com/hishamhm/htop
  2. [root@kvm-test tools]# cd htop/
  3. ./autogen.sh && ./configure && make
  4. make install
  5. --------------------
  6. # 安装完成后检查版本:
  7. [root@kvm-test htop]# htop --version
  8. htop 2.0.2 - (C) 2004-2017 Hisham Muhammad
  9. Released under the GNU GPL.

Command Explain

  1. PID USER PRI NI VIRT RES SHR S CPU% MEM% TIME+ Command
  2. 27513 root 20 0 110M 2360 1324 R 1.3 0.0 0:00.35 htop
  3. 1 root 20 0 19232 1580 1304 S 0.0 0.0 0:02.46 /sbin/init
  4. 1268 root 16 -4 11112 1296 432 S 0.0 0.0 0:00.42 /sbin/udevd -d
  5. 2340 root 16 -4 27596 824 592 S 0.0 0.0 0:00.05 auditd
  6. 2339 root 16 -4 27596 824 592 S 0.0 0.0 0:00.23 auditd
  7. ...
添加新批注
在作者公开此批注前,只有你和作者可见。
回复批注