zoukankan      html  css  js  c++  java
  • 运行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,关闭该进程即可。

      

  • 相关阅读:
    sql server 跨库操作
    FPGA使用技巧
    MATLAB学习(3)
    FPGA统计摄像头输出-基于MD9T112
    zedboard VmodCAM 图像采集 HDMI输出显示
    VmodCAM图像采集 VGA显示
    EDK中如何使用ISE中生成的IP
    如何将HDL文件实例化到XPS中
    ubuntu下安装 Source insight
    VmodCAM 初始化
  • 原文地址:https://www.cnblogs.com/ExMan/p/10775412.html
Copyright © 2011-2022 走看看