网站访问量统计工具使用 网站流量查询工具

本文教你如何使用网络流量查看工具-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, --helpshow 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)-gstart the general interface statistics-Brun in background (use only with one of the above parameters-fclear 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 可以找到对应的进程号 。


    以上关于本文的内容,仅作参考!温馨提示:如遇健康、疾病相关的问题,请您及时就医或请专业人士给予相关指导!

    「四川龙网」www.sichuanlong.com小编还为您精选了以下内容,希望对您有所帮助: