大佬教程收集整理的这篇文章主要介绍了netstat显示没有pid的侦听端口,但lsof没有,大佬教程大佬觉得挺不错的,现在分享给大家,也给大家做个参考。
我从那里尝试了所有东西,审查了日志等……但找不到任何东西.
我的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:* -
有什么想法吗?我应该关注他们吗?
您可以使用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
以上是大佬教程为你收集整理的netstat显示没有pid的侦听端口,但lsof没有全部内容,希望文章能够帮你解决netstat显示没有pid的侦听端口,但lsof没有所遇到的程序开发问题。
如果觉得大佬教程网站内容还不错,欢迎将大佬教程推荐给程序员好友。
本图文内容来源于网友网络收集整理提供,作为学习参考使用,版权属于原作者。
如您有任何意见或建议可联系处理。小编QQ:384754419,请注明来意。