linux网络监控命令集锦

linux网络监控命令集锦

 

iproute 包下的ss命令很有用,例如:

Task: Display All Open Network Ports

# ss -l

 

监控SMTP连接

# ss -o state established '( dport = :smtp or sport = :smtp )'

监控HTTP连接

# ss -o state established '( dport = :http or sport = :http )'

 

watch -n 1 ” ss -o state established ‘( dport = :http or sport = :http )'”

 

 

Comment

*

沪ICP备14014813号

沪公网安备 31010802001379号