• 运行gunicorn失败:[ERROR] Connection in use: ('0.0.0.0', 8000)


    参考:https://pdf-lib.org/Home/Details/5262

    执行命令:gunicorn -w 4 -b 0.0.0.0:8000 wsgi:app,遇到如下错误:

    [2019-01-10 17:17:13 +0800] [31665] [INFO] Starting gunicorn 19.9.0
    [2019-01-10 17:17:13 +0800] [31665] [ERROR] Connection in use: ('0.0.0.0', 8000)
    [2019-01-10 17:17:13 +0800] [31665] [ERROR] Retrying in 1 second.
    [2019-01-10 17:17:14 +0800] [31665] [ERROR] Connection in use: ('0.0.0.0', 8000)
    [2019-01-10 17:17:14 +0800] [31665] [ERROR] Retrying in 1 second.
    [2019-01-10 17:17:15 +0800] [31665] [ERROR] Connection in use: ('0.0.0.0', 8000)
    [2019-01-10 17:17:15 +0800] [31665] [ERROR] Retrying in 1 second.
    [2019-01-10 17:17:16 +0800] [31665] [ERROR] Connection in use: ('0.0.0.0', 8000)
    [2019-01-10 17:17:16 +0800] [31665] [ERROR] Retrying in 1 second.
    [2019-01-10 17:17:17 +0800] [31665] [ERROR] Connection in use: ('0.0.0.0', 8000)
    [2019-01-10 17:17:17 +0800] [31665] [ERROR] Retrying in 1 second.
    [2019-01-10 17:17:18 +0800] [31665] [ERROR] Can't connect to ('0.0.0.0', 8000)
     

    这是因为之前执行:supervisorctl start wsgi,占用了8000端口。

    使用命令:supervisorctl stop wsgi,关闭该进程即可。

      

  • 相关阅读:
    .net core在linux下图片中文乱码
    微信公众号开发--.net core接入
    洛谷P3385负环
    洛谷P3387缩点
    洛谷P2312解方程
    洛谷P3366最小生成树
    洛谷P3378堆
    洛谷P2024食物链
    洛谷P2680运输计划
    洛谷P2886牛继电器
  • 原文地址:https://www.cnblogs.com/ExMan/p/10775412.html
Copyright © 2020-2023  润新知