@cdmonkey
2017-04-11T06:09:44.000000Z
字数 1295
阅读 1495
命令总结
http://sourceforge.net/projects/htop/
http://www.cnblogs.com/mchina/archive/2013/03/15/2858041.html
http://hisham.hm/htop/
[root@Node-A1 ~]# yum install -y htop
首先需要安装必要的依赖包:
yum install -y automake ncurses-devel
另外还需要编译安装autoconf 2.64或是更高的版本。
# 如果需要卸载旧版,可运行下面的指令:rpm -e --nodeps autoconf-2.63# Install:[root@kvm-test tools]# cd autoconf-2.69./configure --prefix=/usr/make && make install--------------------# 安装完成后检查版本:[root@kvm-test ~]# /usr/bin/autoconf -Vautoconf (GNU Autoconf) 2.69...
比较操蛋的是,还需要安装libtool 2.4.0或是更高的版本。
# 如果需要卸载旧版,可运行下面的指令:rpm -e libtool-2.2.6-15.5.el6.x86_64# Install:[root@kvm-test tools]# cd libtool-2.4.6./configure --prefix=/usrmake && make install--------------------# 安装完成后检查版本:[root@kvm-test ~]# /usr/bin/libtool --versionlibtool (GNU libtool) 2.4.6...
编译安装最新版。
[root@kvm-test tools]# git clone https://github.com/hishamhm/htop[root@kvm-test tools]# cd htop/./autogen.sh && ./configure && makemake install--------------------# 安装完成后检查版本:[root@kvm-test htop]# htop --versionhtop 2.0.2 - (C) 2004-2017 Hisham MuhammadReleased under the GNU GPL.
PID USER PRI NI VIRT RES SHR S CPU% MEM% TIME+ Command27513 root 20 0 110M 2360 1324 R 1.3 0.0 0:00.35 htop1 root 20 0 19232 1580 1304 S 0.0 0.0 0:02.46 /sbin/init1268 root 16 -4 11112 1296 432 S 0.0 0.0 0:00.42 /sbin/udevd -d2340 root 16 -4 27596 824 592 S 0.0 0.0 0:00.05 auditd2339 root 16 -4 27596 824 592 S 0.0 0.0 0:00.23 auditd...
