Think before you speak, read before you think.

ss命令的使用

centos6 下安装 iproute 包

yum install -y iproute

查看 6379 端口

ss -nlp | grep redis

查看连接的各种状态

ss -nat | awk '{++s[$1]} END {for(k in s) print k,s[k]}'

查看所有状态

ss state all

http://sharadchhetri.com/2014/09/27/ss-command-alternate-netstat/


Comments

Leave a Reply

Your email address will not be published. Required fields are marked *