首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >ubuntu的UWSGI https配置

ubuntu的UWSGI https配置
EN

Stack Overflow用户
提问于 2017-03-07 15:51:43
回答 1查看 246关注 0票数 0

我的django应用程序正在使用redhat 7.3中的以下uwsgi配置运行:

代码语言:javascript
复制
[uwsgi]
project = helloworld
base = %d

chdir=%(base)
module=helloworld.wsgi:application

plugins = router_redirect
route-if = equal:${HTTPS};on addheader:Strict-Transport-Security: max-age=31536000

master = true
processes = 1

enable-threads = true
threads = 1

max-requests = 2000

shared-socket = 0.0.0.0:443
https =  =0,cert/hello.crt,cert/hello.key,HIGH

pidfile = hello_uwsgi.pid

vacuum = true

die-on-term = true

然而,当我在Ubuntu 16.04.1 LTS上运行它时,我得到了以下错误:

代码语言:javascript
复制
your processes number limit is 31283
your memory page size is 4096 bytes
detected max file descriptor number: 1024
lock engine: pthread robust mutexes
thunder lock: disabled (you can enable it with --thunder-lock)
Python version: 3.5.2 (default, Nov 17 2016, 17:05:23)  [GCC 5.4.0 20160609]
Python main interpreter initialized at 0x1dfabe0
python threads support enabled
The -s/--socket option is missing and stdin is not a socket.
VACUUM: pidfile removed.

这个错误是否意味着uwsgi绑定端口失败?在ubuntu中使用“共享套接字”有什么特殊的方式吗?我需要在端口443和8443上运行它。我已经在端口443和8443上尝试了上述配置,但均未成功。

提前谢谢。

EN

回答 1

Stack Overflow用户

回答已采纳

发布于 2017-03-08 14:46:55

通过重新安装源码中的python 3.5.2,我让它在ubuntu中工作。

我猜使用apt-get安装python 3.5.2会有一些问题/不兼容。

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/42642956

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档