Skip to content

Latest commit

 

History

History
44 lines (35 loc) · 583 Bytes

网卡流量监控.md

File metadata and controls

44 lines (35 loc) · 583 Bytes

查tcp连接--分析tcp13种状态

netstat -ant
ss -ant

通过端口查进程

lsof -i:80

通过连接查进程

nethogs
yum install nload iptraf nethogs -y

nload:

查网卡实时总流量

nload -m
nload - displays the current network usage

nethogs-针对程序

查每进程占用的流量

nethogs - Net top tool grouping bandwidth per process

iptraf-针对ip

查每个ip占用流量

查看双工

ethtool eth0

参考: 较成熟的脚本 https://www.centos.bz/2014/06/shell-script-for-network-analysis/