【发布时间】: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 是什么意思?
【问题讨论】: