netstat显示没有pid的侦听端口,但lsof没有
发布时间:2020-12-13 18:33:39 所属栏目:Linux 来源:网络整理
导读:这个问题类似于 Network port open,but no process attached? 我从那里尝试了所有东西,审查了日志等……但找不到任何东西. 我的netstat显示TCP侦听端口和没有pid的UDP端口.当我搜索lsof的那些端口时,没有任何东西出现. netstat -lntupProto Recv-Q Send-Q Lo
这个问题类似于
Network port open,but no process attached?
我从那里尝试了所有东西,审查了日志等……但找不到任何东西. 我的netstat显示TCP侦听端口和没有pid的UDP端口.当我搜索lsof的那些端口时,没有任何东西出现. netstat -lntup Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name tcp 0 0 0.0.0.0:44231 0.0.0.0:* LISTEN - udp 0 0 0.0.0.0:55234 0.0.0.0:* - 以下命令不显示任何内容: lsof | grep 44231 lsof | greo 55234 fuser -n tcp 44231 fuser -n udp 55234 重新启动后,除了新的端口号之外,那些“相同”的两个连接都在那里: netstat -lntup Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name tcp 0 0 0.0.0.0:45082 0.0.0.0:* LISTEN - udp 0 0 0.0.0.0:37398 0.0.0.0:* - 再次,lsof和fuser命令没有显示任何内容. 有什么想法吗?我应该关注他们吗? 解决方法
根据您提供的数据,我会说它与某些NFS挂载或使用RPC的内容有关.
您可以使用rpcinfo -p检查某些RPC相关服务可能使用的端口. 这是它在我的系统上的外观 # netstat -nlp | awk '{if ($NF == "-")print $0}' tcp 0 0 0.0.0.0:55349 0.0.0.0:* LISTEN - udp 0 0 0.0.0.0:18049 0.0.0.0:* - # rpcinfo -p program vers proto port 100000 2 tcp 111 portmapper 100000 2 udp 111 portmapper 100024 1 udp 10249 status 100024 1 tcp 10249 status 100021 1 udp 18049 nlockmgr 100021 3 udp 18049 nlockmgr 100021 4 udp 18049 nlockmgr 100021 1 tcp 55349 nlockmgr 100021 3 tcp 55349 nlockmgr 100021 4 tcp 55349 nlockmgr (编辑:李大同) 【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容! |