This topic has been archived. It cannot be replied.
-
工作学习 / 专业技术讨论 / 请教: Redhat8有一个端口8001被占用,处于listen状态,但不知道其被哪个进程占用.如何查看其被那个进程占用?如何不理睬进程直接释放此端口?
-mike20030405(mike);
2005-7-21
(#2410891@0)
-
netstat -a -p 可以查看.8001端口已释放.第二个问题如果有答案仍然很欢迎.
-mike20030405(mike);
2005-7-21
(#2410899@0)
-
ps -elf | grep `lsof -P | grep :8001 | gawk '{print $2;exit}'`
-holdon(again);
2005-7-21
(#2411019@0)
-
great script!! Thanks a lot
-mike20030405(mike);
2005-7-21
(#2411251@0)
-
This case, you should not only kill the process and release the port. You should trace into the problem. Your system maybe owned by other ;)
-bugfree(BugFree);
2005-7-22
(#2412606@0)
-
good point.Thanks anyway
-mike20030405(mike);
2005-7-26
(#2418934@0)
-
$ lsof -i tcp:8001; lsof -i udp:8001
-pigkiller(早起的虫子给鸟吃);
2005-7-22
(#2412991@0)
-
Thanks
-mike20030405(mike);
2005-7-26
(#2418936@0)
-
RedHat : # /sbin/fuser -vn tcp 8001
Solaris : # lsof -i tcp:8001
-richard_wu(Richard);
2005-7-23
(#2414019@0)
-
Thanks anyway
-mike20030405(mike);
2005-7-26
(#2418938@0)