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,关闭该进程即可。

      

  • 相关阅读:
    MOS
    1- Bluetooth开发
    1- Bluetooth
    MCU 51-10 Infrared Communication
    1- STM32 HAL库学习 GPIO配置点亮LED灯
    MCU 51-9 DS18B20 Temperature Sensor
    MCU 51-8 AD/DA
    C语言讲义——变量(variable)
    C语言讲义——注释
    C语言讲义——“编译、链接”
  • 原文地址:https://www.cnblogs.com/ExMan/p/10775412.html
Copyright © 2011-2022 走看看