socket.error: [Errno 48] Address already in use

后端 未结 10 2287
小鲜肉
小鲜肉 2020-11-29 14:33

I\'m trying to set up a server with python from mac terminal.

I navigate to folder location an use:

python -m SimpleHTTPServer

Bu

10条回答
  •  孤城傲影
    2020-11-29 15:06

    Simple one line command to get rid of it, type below command in terminal,

    ps -a
    

    This will list out all process, checkout which is being used by Python and type bellow command in terminal,

    kill -9 (processID) 
    

    For example kill -9 33178

提交回复
热议问题