| beginner-bj 回复于:2003-11-05 17:01:46 |
| 推荐我的方法
http://chinaunix.net/forum/viewtopic.php?t=144520 |
| chenhao_no1 回复于:2003-11-05 17:23:05 |
| download a software which name is lsof ,
compile it and copy the binary to /usr/local/bin/, then /usr/local/bin/lsof | grep "application name" with root role |
| mkwf 回复于:2003-11-07 00:27:50 |
| 实际上有标准答案的:
# pfiles /proc/* 将列出每个进程使用的资源,包括socket port,把输出重定向到一个文件,再慢慢找出来即可。 楼上兄弟的办法lsof也可以。 下面的文章,两种方法都有介绍: How to locate the process that is using a network address and port number? http://sunsolve.sun.com/pub-cgi/retrieve.pl?doc=finfodoc%2F22783 |
| loader99 回复于:2003-11-10 13:36:14 |
| 谢谢大家。 但好像还是有问题。
比如, 我给一个port: 1521. 我怎么知道它是哪个应用在使用呢? 当然, 1521是oracle的... |
| royfan 回复于:2003-11-10 14:26:05 |
| [quote:1b3e7a789d="chenhao_no1"]download a software which name is lsof ,
compile it and copy the binary to /usr/local/bin/, then /usr/local/bin/lsof | grep "application name" with root role[/quote:1b3e7a789d] 我直接copy就可以用了? |
| janks 回复于:2003-11-10 15:08:15 |
| 在哪里可以下载lsof安装包?最好是二进制,直接可以安装的.谢谢! |
| mkwf 回复于:2003-11-10 17:28:18 |
| 还是没有看俺的回复啊?
上面的方法会列出一个表,无论是查进程还是port都可以的。 |
| beginner-bj 回复于:2003-11-10 17:51:59 |
| mkwf的回复,我从来都是认真看的。呵呵 |
| 6322zfx 回复于:2003-11-10 20:51:15 |
| more /etc/services |
| sunmarmot 回复于:2003-11-10 21:54:44 |
| hohoho~~~~~~~~~~最近的黑客比较多,这个还是比较有用的,可能是黑客帝国3上演了,嘿嘿!! |