美文网首页
linux 根据端口查找相应对应的程序 (reprint)

linux 根据端口查找相应对应的程序 (reprint)

作者: 小镇青年Jack | 来源:发表于2023-01-18 14:14 被阅读0次

一、根据端口查程序
代码如下(示例):

-- 查询linux暴露的端口,找到进程号
netstat -nlp | grep 9700
-- 由进程号找到程序路径
ll /proc/25189/cwd

可以看到进程号为 5975 image.png

-- 由进程号找到程序路径
ll /proc/5975/cwd

source:https://blog.csdn.net/qq_44966769/article/details/125413593

相关文章

网友评论

      本文标题:linux 根据端口查找相应对应的程序 (reprint)

      本文链接:https://www.haomeiwen.com/subject/mdxfhdtx.html