Django Server Error: port is already in use

前端 未结 16 614
借酒劲吻你
借酒劲吻你 2020-12-04 04:34

Restarting the Django server displays the following error:

this port is already running....

This problem occurs specifically on Ubuntu and

16条回答
  •  暗喜
    暗喜 (楼主)
    2020-12-04 05:06

    A more simple solution just type sudo fuser -k 8000/tcp. This should kill all the processes associated with port 8000.

    EDIT:

    For osx users you can use sudo lsof -t -i tcp:8000 | xargs kill -9

提交回复
热议问题