Socket error: Address already in use

后端 未结 3 1815
醉梦人生
醉梦人生 2021-02-02 03:55

I have a CherryPy script that I frequently run to start a server. Today I was having to start and stop it a few times to fix some bugs in a config file, and I guess the socket

3条回答
  •  广开言路
    2021-02-02 04:10

    Much more easier to do it by:

    Check the PID(:5000 is the host since I've been running on 127.0.0.1:5000):
    $ lsof -i :5000
    Then kill it:
    $ sudo kill -9 PID

提交回复
热议问题