【发布时间】:2017-01-14 03:10:22
【问题描述】:
我的 4000 端口被占用了,但是我想杀死占用它的进程。当我使用netstat -anp | grep 4000 但是结果是:
$ netstat -anp | grep 4000
(Not all processes could be identified, non-owned process info
will not be shown, you would have to be root to see it all.)
tcp 0 0 0.0.0.0:4000 0.0.0.0:* LISTEN -
当我使用lsof -i:4000时,我什么都没有,所以曾经拥有4000端口的进程死了,4000端口仍然没有释放?
如何解决?
【问题讨论】:
-
按照建议以
root运行它时看到了什么? -
Stack Overflow 是一个编程和开发问题的网站。这个问题似乎离题了,因为它与编程或开发无关。请参阅帮助中心的What topics can I ask about here。也许Super User 或Unix & Linux Stack Exchange 会是一个更好的提问地方。另见Where do I post questions about Dev Ops?
-
当我以
root运行它时,我可以看到进程ID。
标签: linux networking