How to 'clear' the port when restarting django runserver

前端 未结 19 2129
盖世英雄少女心
盖世英雄少女心 2020-12-12 11:23

Often, when restarting Django runserver, if I use the same port number, I get a \'port is already in use\' message. Subsequently, I need to increment the port number each t

相关标签:
19条回答
  • 2020-12-12 12:14

    If the port number that you are trying is 8001, then use this command

    sudo fuser -k 8001/tcp
    
    0 讨论(0)
提交回复
热议问题