Error: That port is already in use.(Django项目无法启动)
作者:互联网
Error: That port is already in use.说明端口号被占用
打开终端输入:
lsof -i:8000
然后可以看到
COMMAND PID USER FD TYPE DEVICE SIZE/OFF NODE NAME
_Postman 24724 chenxin 134u IPv4 194944 0t0 TCP localhost:54114->localhost:8000 (ESTABLISHED)
python 26229 chenxin 4u IPv4 196787 0t0 TCP localhost:8000 (LISTEN)
使用
kill -9 24724
杀死进程就行
请不要点赞,本人害羞,O(∩_∩)O谢谢!!!
标签:use,already,TCP,Django,8000,port,localhost,0t0 来源: https://www.cnblogs.com/chen-xin-666/p/13940195.html