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 )’”
Leave a Reply