私はuwsgiサーバーではなく、スタンドアロンhttpサーバーとしてuWSGIを使用しようとしています。ここでHTTPサーバーとしてのuWSGI:config.iniオプションの `http-socket`ではなく` http`です。
」私の設定ファイルmysite.ini
:だから
[uwsgi]
chdir = /srv/workflows
module = workflows.wsgi:application
plugin = python
# We can receive connections either via http or from frontend via uwsgi socket
# http:
http = 0.0.0.0:8000
# uwsgi:
#socket = 0.0.0.0:8000
#chmod-socket = 664
vacuum = true
master = true
need-app = true
processes = 10
harakiri = 20
max-requests = 5000
、私は、httpオプションとコメントアウトされたsocket
とchmod-socket
オプションを使用していました。そのuWSGIに対応して
は呪い:
uWSGI: --s/--socket option is missing and stdin is not a socket.
は私がsocket
オプションを指定した場合、uWSGI接続がWSGIプロトコルを実装することを想定している、右のそれを理解していますか?そして、もし私がhttp
オプションを指定すると、接続はhttpであると予想され、その場合にはsocket
オプションを指定してはいけません。
は、jonatron、ありがとうございました。あなたが正しい。しかし、私は 'plugin = python'という文字列のコメントを外しました。これはhttpでも必要です(論理的ですが、uWSGI自体がWSGIを介してPythonアプリケーションとやりとりします)。 –