Gunicorn Connection in Use: ('0.0.0.0', 5000)

∥☆過路亽.° 提交于 2019-12-04 03:05:57

Check your processes. You may have had an unclean exit, leaving a zombie'd process behind that's still running.

Just type

sudo fuser -k 5000/tcp

.This will kill all process associated with port 5000

This should do the trick for you:

kill -9 $(lsof -i:5000 -t) 2> /dev/null

where 5000 is the port you want to kill

After some searching on the web, it looks like the following command is the best to use. This kills all of the processes running on port 5000 and appeared to work for me:

kill `lsof -i :5000`

Source (although a bit more shady than I prefer)

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!