【问题标题】:lsof -i output explanation [closed]lsof -i 输出解释
【发布时间】:2021-12-01 17:19:02
【问题描述】:

谷歌说

lsof 
 -i [i] selects the listing of files any of whose Internet address
              matches the address specified in i.  If no address is
              specified, this option selects the listing of all Internet
              and x.25 (HP-UX) network files.

我有以下输出

root@Landau:~# lsof -i:8018
COMMAND     PID USER   FD   TYPE   DEVICE SIZE/OFF NODE NAME
celery  1843030 root   10u  IPv4 49086348      0t0  TCP Landau.site.ru:58490->Landau.site.ru:8018 (ESTABLISHED)
python  1941119 root    3u  IPv4 48907368      0t0  TCP *:8018 (LISTEN)
python  1941119 root    4u  IPv4 49092801      0t0  TCP Landau.site.ru:8018->ppp83-237-176-131.pppoe.mtu-net.ru:14800 (ESTABLISHED)

第二行是我的进程(监听8018)

->ESTABLISED 是什么意思?

【问题讨论】:

    标签: linux lsof


    【解决方案1】:

    你问的问题是:

    什么意思->​​

    它列出了-> 左侧的host:port 连接到-> 右侧的host:port。例如,主机Landau.site.ru 主机已从端口8018 连接到主机ppp83-237-176-131.pppoe.mtu-net.ru 到端口14800

    并已建立?

    表示实际的 TCP 连接已经建立,SYN -> SYN-ACK -> ACK 消息交换,并且可以使用该连接(或者,使用)来传输消息.

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2014-03-27
      • 1970-01-01
      • 1970-01-01
      • 2014-01-07
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2022-10-14
      相关资源
      最近更新 更多