zoukankan      html  css  js  c++  java
  • Linux 网络监控工具 ss

    ss命令用来显示处于活动状态的套接字信息。功能和netstat类似,但比netstat更快更高效。

    ss -h
    Usage: ss [ OPTIONS ]
           ss [ OPTIONS ] [ FILTER ]
       -h, --help           this message
       -V, --version        output version information
       -n, --numeric        don't resolve service names  不解析服务名称
       -r, --resolve       resolve host names            解析主机名
       -a, --all            display all sockets            
       -l, --listening      display listening sockets    展示监听套接字
       -o, --options       show timer information        显示计时器信息
       -e, --extended      show detailed socket information  显示详细套接字信息
       -m, --memory        show socket memory usage      
       -p, --processes      show process using socket    显示进程消息
       -i, --info           show internal TCP information
       -s, --summary        show socket usage summary    摘要信息
    
       -4, --ipv4          display only IP version 4 sockets
       -6, --ipv6          display only IP version 6 sockets
       -0, --packet display PACKET sockets
       -t, --tcp            display only TCP sockets
       -u, --udp            display only UDP sockets
       -d, --dccp           display only DCCP sockets
       -w, --raw            display only RAW sockets
       -x, --unix           display only Unix domain sockets
       -f, --family=FAMILY display sockets of type FAMILY
    
       -A, --query=QUERY, --socket=QUERY
           QUERY := {all|inet|tcp|udp|raw|unix|packet|netlink}[,QUERY]
    
       -D, --diag=FILE      Dump raw information about TCP sockets to FILE
       -F, --filter=FILE   read filter information from FILE
           FILTER := [ state TCP-STATE ] [ EXPRESSION ]

     查看进程监听端口

    ss -pl
  • 相关阅读:
    批归一化(Batch Normalization)
    NLP | 文本风格迁移 总结
    LeetCode: Word Ladder
    LeetCode: Longest Consecutive Sequence
    LeetCode: Sum Root to Leaf Numbers
    LeetCode: Surrounded Regions
    LeetCode: Palindrome Partition
    LeetCode: Clone Graph
    LeetCode: Gas Station
    LeetCode: Candy
  • 原文地址:https://www.cnblogs.com/one--way/p/5731874.html
Copyright © 2011-2022 走看看