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

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

    Simple solution:

    1. Find the process using port 8080:
    `sudo lsof -i:8080`
    
    1. Kill the process on that port:
    `kill $PID`
    

    PID is got from step 1's output.

提交回复
热议问题