You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
obsidian-sync/work常用/linux/Centos 7 查看TCP 连接数.md

265 B

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

netstat -n | awk '/^tcp/ {++S[$NF]} END {for(a in S) print a, S[a]}'

ESTABLISHED:指TCP连接已建立双方可以进行方向数据传递 **CLOSE_WAIT:这种状态的含义其实是表示在等待关闭 TIME_WAIT:指连接已准备关闭