【发布时间】:2020-05-15 15:11:09
【问题描述】:
我用烧瓶构建了一个 API。我的应用程序没有任何静态资产,因此我没有理由使用 nginx。
我希望在 80 端口上运行 gunicorn。
我有一个“部署脚本”:
mkdir .log 2> /dev/null
DEBUG=0 gunicorn -b 0.0.0.0:80 backend:app --access-logfile .log/access.log --error-logfile .log/general.log
我希望使用authbind 在端口 80 上运行 gunicorn。我在这里关注了guide。
请注意,我可以运行 authbind python -m SimpleHTTPServer 80
当我尝试运行authbind ./deployment.run 80时,
我看到以下错误:
2013-04-25 15:32:55 [24006] [ERROR] Can't connect to ('0.0.0.0', 80)
2013-04-25 15:33:08 [24018] [INFO] Starting gunicorn 0.17.4
2013-04-25 15:33:08 [24018] [ERROR] Retrying in 1 second.
2013-04-25 15:33:09 [24018] [ERROR] Retrying in 1 second.
2013-04-25 15:33:10 [24018] [ERROR] Retrying in 1 second.
2013-04-25 15:33:11 [24018] [ERROR] Retrying in 1 second.
2013-04-25 15:33:12 [24018] [ERROR] Retrying in 1 second.
任何想法为什么我无法将 gunicorn 绑定到端口 80?
有什么建议吗?
【问题讨论】: