0
配置我有一個使用在redhat 7.3下面uwsgi配置下運行Django應用程序:UWSGI HTTPS的Ubuntu
[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都沒有成功。
在此先感謝。