网站流量查询工具(网站访问量统计工具使用)
  • 来源:互联网
  • 发布时间:2026-04-02 10:37:54

本文教你如何使用网络流量查看工具-iptraf-ng 。

iptraf-ng 可以方便查看当前服务器网络状况:CentOS 7.0,采用了衍生版本iptraf-ng 。

iptraf-ng -husage: iptraf-ng [options] or: iptraf-ng [options] -B [-i <iface> | -d <iface> | -s <iface> | -z <iface> | -l <iface> | -g] -h, --help show this help message -i <iface> start the IP traffic monitor (use '-i all' for all interfaces) -d <iface> start the detailed statistics facility on an interface -s <iface> start the TCP and UDP monitor on an interface -z <iface> shows the packet size counts on an interface -l <iface> start the LAN station monitor (use '-l all' for all LAN interfaces) -g start the general interface statistics -B run in background (use only with one of the above parameters -f clear all locks and counters -t <n> run only for the specified <n> number of minutes -L <logfile> specifies an alternate log file

简要步骤:

“iptraf -g” 显示每一个网卡上的流量:

“iptraf -d eth0” 显示指定网卡上的流量统计,总体流量、流入量、流出量、以及按协议分类的流量统计:

“iptraf -s eth0” 统计各port的流量:

“iptraf -i eth0” 查看远程主机端口:

“iptraf -i eth0” 的输出分为两个窗口,上面是TCP socket pairs,下面是UDP。我们根据端口号 使用 lsof 可以找到对应的进程号。

其他文章

  • 晋江丁一酒业贸易有限公司注册成功-酒业贸易公司注册-晋江注册公司
  • 北京盛世华章科技有限公司注册成功-科技公司注册-北京注册公司
  • 利川市博标劳务有限公司注册成功-劳务公司注册-利川注册公司
  • 广州优上科技有限公司注册成功-科技公司注册-广州注册公司
  • 集安市李飞商贸有限公司注册成功-商贸公司注册-集安注册公司
  • 潮之适(江门)生物科技有限公司注册成功-生物科技公司注册-江门注册公司
  • 佛山市晨清科技有限公司注册成功-科技公司注册-佛山注册公司
  • 京中(天津)纳米材料科技有限公司注册成功-纳米材料科技公司注册-天津注册公司
  • 温州昱鸥生物科技有限公司注册成功-生物科技公司注册-温州注册公司
  • 山东锦元防腐保温工程有限公司注册成功-防腐保温工程公司注册-山东注册公司