如何通过调查在Linux中某个进程打开的端口? [英] how to investigate ports opened by a certain process in linux?
本文介绍了如何通过调查在Linux中某个进程打开的端口?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
假设PID的方法是已知的
解决方案
- 所有的netstat --program | grep的3265
-all 显示侦听和非侦听套接字。
- 程序显示PID和哪个套接字所属的程序名称
您也可以使用端口扫描器,如NMAP。
Suppose the PID of the process is already known
解决方案
netstat --all --program | grep '3265'
-all show listening and non-listening sockets.
--program show the PID and name of the program to which socket belongs.
You could also use a port scanner such as nmap.
这篇关于如何通过调查在Linux中某个进程打开的端口?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文