centos yum install iproute2 iproute2-do ubuntu apt-get install iproute2 iproute2-do 安装好后就可以用ss命令查看端口了