您的位置:首页 > 运维架构 > Linux

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

2016-03-18 10:59 495 查看
我的环境是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
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息