Linux网络状态工具ss命令使用详解(6)
ss列出本地哪个进程连接到x server # ss -x src /tmp/.X11-unix/* 1 # ss -x src /tmp/.X11-unix/* ss列出处在FIN-WAIT-1状态的http、https连接 # ss -o state fin-wait-1 '( sport = :http or
ss列出本地哪个进程连接到x server
# ss -x src /tmp/.X11-unix/*
1 | # ss -x src /tmp/.X11-unix/* |
ss列出处在FIN-WAIT-1状态的http、https连接
# ss -o state fin-wait-1 '( sport = :http or sport = :https )'
1 | # ss -o state fin-wait-1 '( sport = :http or sport = :https )' |
ss常用的state状态:
established syn-sent syn-recv fin-wait-1 fin-wait-2 time-wait closed close-wait last-ack listen closing all : All of the above states connected : All the states except for listen and closed synchronized : All the connected states except for syn-sent bucket : Show states, which are maintained as minisockets, i.e. time-wait and syn-recv. big : Opposite to bucket state.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 | established syn-sent syn-recv fin-wait-1 fin-wait-2 time-wait closed close-wait last-ack listen closing all : All of the above states connected : All the states except for listen and closed synchronized : All the connected states except for syn-sent bucket : Show states, which are maintained as minisockets, i.e. time-wait and syn-recv. big : Opposite to bucket state. |
- 上一篇:Nginx如何启用ETag,提高访问速度
- 下一篇:tar 分包压缩与合并
精彩图集
精彩文章