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

9 lines
265 B

```shell
netstat -n | awk '/^tcp/ {++S[$NF]} END {for(a in S) print a, S[a]}'
```
**ESTABLISHED:指TCP连接已建立双方可以进行方向数据传递**
**CLOSE_WAIT:这种状态的含义其实是表示在等待关闭
**TIME_WAIT:指连接已准备关闭**