htop进程管理工具

先介绍一下该工具的安装:

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
#wget下载
[[email protected] tools]# wget http://jaist.dl.sourceforge.net/project/htop/htop/1.0.2/htop-1.0.2.tar.gz
--2016-10-27 16:16:00--  http://jaist.dl.sourceforge.net/project/htop/htop/1.0.2/htop-1.0.2.tar.gz
正在解析主机 jaist.dl.sourceforge.net (jaist.dl.sourceforge.net)... 150.65.7.130, 2001:df0:2ed:feed::feed
正在连接 jaist.dl.sourceforge.net (jaist.dl.sourceforge.net)|150.65.7.130|:80... 已连接。
已发出 HTTP 请求,正在等待回应... 200 OK
长度:388499 (379K) [application/x-gzip]
正在保存至: “htop-1.0.2.tar.gz”
 
100%[==========================================================>] 388,499      119KB/s 用时 3.2s   
 
2016-10-27 16:16:03 (119 KB/s) - 已保存 “htop-1.0.2.tar.gz” [388499/388499])
[[email protected] tools]# ll
总用量 380
-rw-r--r--. 1 root root 388499 10月 27 16:05 htop-1.0.2.tar.gz
[[email protected] tools]# tar xf htop-1.0.2.tar.gz                #解压
[[email protected] tools]# cd htop-1.0.2
[[email protected] htop-1.0.2]# ./configure                        #下面的提示是因为缺少gcc
checking for gcc... no
checking for cc... no
checking for cl.exe... no
configure: error: in `/root/tools/htop-1.0.2':
configure: error: no acceptable C compiler found in $PATH
See `config.log' for more details.
[[email protected] htop-1.0.2]# yum install -y gcc                 #安装gcc
已加载插件:fastestmirror
...........
[[email protected] htop-1.0.2]# ./configure                        #提示缺少组件,需要安装ncurses-devel
...........
configure: error: You may want to use --disable-unicode or install libncursesw.
[[email protected] htop-1.0.2]# yum install -y ncurses-devel       #安装ncurses-devel
...........
完毕!
[[email protected] htop-1.0.2]# ./configure 
[[email protected] htop-1.0.2]# make && make install                #安装成功
[[email protected] htop-1.0.2]# echo $?
0

图示:




htop进程管理工具






      本文转自cix123  51CTO博客,原文链接:http://blog.51cto.com/zhaodongwei/1866362,如需转载请自行联系原作者