使用中的Gunicorn连接:('0.0.0.0',5000)

2024-05-23 07:40:41 发布

您现在位置:Python中文网/ 问答频道 /正文

今天下午我安装了redis,它导致了一些错误,所以我卸载了它,但是当我使用foreman start启动应用程序时,这个错误仍然存在。有什么解决办法吗?

foreman start
22:46:26 web.1  | started with pid 1727
22:46:26 web.1  | 2013-05-25 22:46:26 [1727] [INFO] Starting gunicorn 0.17.4
22:46:26 web.1  | 2013-05-25 22:46:26 [1727] [ERROR] Connection in use: ('0.0.0.0', 5000)

Tags: ininforedis应用程序错误witherrorforeman
3条回答

只是打字

sudo fuser -k 5000/tcp

。这将终止与端口5000相关的所有进程

检查你的流程。你可能有一个不干净的出口,留下一个僵尸的进程后面,仍然在运行。

这应该能帮到你:

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

5000是你想杀的港口

相关问题 更多 >

    热门问题