Linux ubuntu的UWSGI https配置
我有一个django应用程序正在使用redhat 7.3中的以下uwsgi配置运行:Linux ubuntu的UWSGI https配置,linux,django,ubuntu,uwsgi,Linux,Django,Ubuntu,Uwsgi,我有一个django应用程序正在使用redhat 7.3中的以下uwsgi配置运行: [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
[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上运行它时,我得到了以下错误:
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的上述配置,但没有成功
提前感谢。我通过从源代码重新安装python 3.5.2,在ubuntu中实现了这一点 我猜使用apt-get安装Python3.5.2时会出现一些问题/不兼容