netstat显示没有pid的侦听端口,但lsof没有
发布时间:2020-05-23 18:43:48 所属栏目: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 (编辑:安卓应用网) 【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容! |
相关内容
- linux – Metasploit:模块数据库缓存尚未构建,使用慢速搜索
- Linux C:交互式输出
- Linux Ubuntu服务器上的VSFTPD / FTP问题 – 故障排除步骤?
- linux – perf在用户和内核级别测量事件的选项是什么意思?
- linux – 带有通配符的mv仍然是原子的
- 如何通过为每个Linux核心启动一个任务来(通常)并行化Linux
- linux-kernel – USB端口速度Linux
- linux – 如何使用bitbake / yocto指定要构建的内核
- 在linux安装的每个主文件夹中应该包含哪些内容?
- linux – scsi和/ dev / disk / by-id下相同硬盘的ata条目
