错误:该端口已被使用。 [英] Error: That port is already in use.
本文介绍了错误:该端口已被使用。的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
当我尝试django重新启动其显示消息:
when i try django restarting its showing message :
此端口已在运行....
this port is already running....
这个问题专门在ubunut 10.x并不是所有的OS.how我可以在目前的系统上实现这一点我正在工作?
你可以建议我吗?
this problem specially on ubunut 10.x not all OS.how I might achieve this on the current system that I am working on? can you suggest me?
推荐答案
一个更简单的解决方案只需键入 sudo fuser -k 8000 / TCP
。
这应该会杀死与端口8000相关联的所有进程。
A more simple solution just type sudo fuser -k 8000/tcp
.
This should kill all the processes associated with port 8000.
编辑:
对于osx用户您可以使用 sudo lsof -t -i tcp:8000 | xargs kill -9
For osx users you can use sudo lsof -t -i tcp:8000 | xargs kill -9
这篇关于错误:该端口已被使用。的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文