微信公众号搜"智元新知"关注
微信扫一扫可直接关注哦!

ubuntu – 实时检查传入的网络流量?

有没有办法可以在我的服务器上实时监控传入的网络流量?优选地,以* bps表示

运行Ubuntu

Ifstat:
rilindo@ubuntu:~$sudo apt-get install ifstat
[sudo] password for rilindo: 
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following NEW packages will be installed:
  ifstat
0 upgraded,1 newly installed,0 to remove and 3 not upgraded.
Need to get 23.4kB of archives.
After this operation,94.2kB of additional disk space will be used.
Get:1 http://us.archive.ubuntu.com/ubuntu/ lucid/universe ifstat 1.1-8 [23.4kB]
Fetched 23.4kB in 0s (34.6kB/s) 
Selecting prevIoUsly deselected package ifstat.
(Reading database ... 92838 files and directories currently installed.)
Unpacking ifstat (from .../ifstat_1.1-8_amd64.deb) ...
Processing triggers for man-db ...
Setting up ifstat (1.1-8) ...
rilindo@ubuntu:~$ifstat
       eth0                br0                virbr0              vnet0               vnet1               vnet2               vnet3               vnet4       
 KB/s in  KB/s out   KB/s in  KB/s out   KB/s in  KB/s out   KB/s in  KB/s out   KB/s in  KB/s out   KB/s in  KB/s out   KB/s in  KB/s out   KB/s in  KB/s out
    4.67      5.21      3.67      5.05      0.00      0.00      0.00      0.00      0.00      0.00      0.00      0.00      0.00      0.00      0.00      0.00
    3.93      4.59      0.38      0.74      0.00      0.00      0.00      0.00      0.00      0.00      0.00      0.00      0.00      0.00      0.00      0.00
    3.93      4.59      6.19      8.30      0.00      0.00      0.00      0.00      0.00      0.00      0.00      0.00      0.00      0.00      0.00      0.00
    3.93      4.59      3.03      4.33      0.00      0.00      0.00      0.00      0.00      0.00      0.00      0.00      0.00      0.00      0.00      0.00

原文地址:https://www.jb51.cc/ubuntu/348792.html

版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。

相关推荐