linux下监控进程实时流量nethogs的安装

简介:

我的环境是centos6.5 x64位的 
1,安装nethogs的依赖包
        yum install libpcap  libpcap-devel
2,  再去ftp://ftp.muug.mb.ca/mirror/fedora/epel/6/x86_64/nethogs-0.8.0-1.e16.x86_64.rpm

               http://rpm.pbone.net/index.php3/stat/4/idpl/17273936/dir/redhat_el_6/com/nethogs-0.8.0-1.el6.x86_64.rpm.html


3,安装nethogs 
        rpm –ivh   nethogs-0.8.0-1.e16.x86_64.rpm

        nethogs  -p 网卡号(如eth0),如下图:

NetHogs version 0.8.0
PID USER     PROGRAM                      DEV        SENT      RECEIVED
?     root     ..143:1388-192.168.21.6:139             0.000       0.634 KB/sec
13439 root     sshd: root@pts/0             eth0       1.730       0.123 KB/sec
?     root     ..92:80-192.168.25.57:47869             0.014       0.040 KB/sec
?     root     ..92:80-192.168.25.99:60509             0.014       0.040 KB/sec
?     root     ..99:52052-192.168.20.94:80             0.000       0.014 KB/sec
?     root     ..57:54920-192.168.20.94:80             0.000       0.014 KB/sec
?     root     ..92:80-192.168.25.57:47867             0.000       0.000 KB/sec
?     root     ..92:80-192.168.25.99:60507             0.000       0.000 KB/sec
?     root     ..99:52050-192.168.20.94:80             0.000       0.000 KB/sec
?     root     ..57:54918-192.168.20.94:80             0.000       0.000 KB/sec
?     root     ..2337-192.168.25.118:10050             0.000       0.000 KB/sec
?     root     ..2336-192.168.25.118:10050             0.000       0.000 KB/sec
?     root     ..92:80-192.168.25.57:47865             0.000       0.000 KB/sec
?     root     ..92:80-192.168.25.99:60505             0.000       0.000 KB/sec
?     root     ..99:52048-192.168.20.94:80             0.000       0.000 KB/sec
?     root     ..57:54916-192.168.20.94:80             0.000       0.000 KB/sec
?     root     ..2335-192.168.25.118:10050             0.000       0.000 KB/sec
?     root     ..2334-192.168.25.118:10050             0.000       0.000 KB/sec
?     root     ..2333-192.168.25.118:10050             0.000       0.000 KB/sec
?     root     ..2332-192.168.25.118:10050             0.000       0.000 KB/sec



本文转自 boy461205160 51CTO博客,原文链接:http://blog.51cto.com/461205160/1752459

相关文章
|
3天前
|
Linux 开发工具 C语言
Linux 安装 gcc 编译运行 C程序
Linux 安装 gcc 编译运行 C程序
21 0
|
3天前
|
Ubuntu Linux Python
Linux(15)Ubuntu安装ninja构建工具
Linux(15)Ubuntu安装ninja构建工具
14 0
|
6天前
|
NoSQL Linux 测试技术
Redis的安装(Linux版)
Redis的安装(Linux版)
149 1
|
2天前
|
监控 安全 Linux
Linux系统之安装ServerBee服务器监控工具
【4月更文挑战第22天】Linux系统之安装ServerBee服务器监控工具
40 2
|
2天前
|
NoSQL Linux 程序员
【linux进程信号(一)】信号的概念以及产生信号的方式
【linux进程信号(一)】信号的概念以及产生信号的方式
|
2天前
|
Linux
【linux进程间通信(一)】匿名管道和命名管道
【linux进程间通信(一)】匿名管道和命名管道
|
2天前
|
Java Shell Linux
【linux进程控制(三)】进程程序替换--如何自己实现一个bash解释器?
【linux进程控制(三)】进程程序替换--如何自己实现一个bash解释器?
|
2天前
|
算法 Linux Shell
【linux进程(二)】如何创建子进程?--fork函数深度剖析
【linux进程(二)】如何创建子进程?--fork函数深度剖析
|
2天前
|
存储 Linux Shell
【linux进程(一)】深入理解进程概念--什么是进程?PCB的底层是什么?
【linux进程(一)】深入理解进程概念--什么是进程?PCB的底层是什么?
|
3天前
|
Linux 开发工具 Android开发
Docker系列(1)安装Linux系统编译Android源码
Docker系列(1)安装Linux系统编译Android源码
6 0