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

后端 未结 10 2268
小鲜肉
小鲜肉 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:14

    Just in case above solutions didn't work:

    1. Get the port your process is listening to:

      $ ps ax | grep python

    2. Kill the Process

      $ kill PROCESS_NAME

提交回复
热议问题