【问题标题】:uWSGI as a standalone http server with luauWSGI 作为带有 lua 的独立 http 服务器
【发布时间】:2013-07-30 21:46:24
【问题描述】:

我正在尝试将 uWSGI 设置为作为运行简单 LUA 脚本的独立服务器运行(现在,作为 POC,使用来自 http://uwsgi-docs.readthedocs.org/en/latest/Lua.html 的 hello world)。

这是我的 uwsgi.ini 文件:

[uwsgi]
master = true
workers = 1
threads = 8
listen = 4096
max-request = 512
pidfile = /uwsgi/logs/uwsgi.pid
procname-master = uWSGI master
auto-procname = true
lua = /uwsgi/hello.lua
socket-timeout = 30
socket = /uwsgi/uwsgi_1.sock
http = 127.0.0.1:80
http-to = /uwsgi/uwsgi_1.sock

发送web请求时,收到一个空响应,uWSGI进程输出:

-- unavailable modifier requested: 0 --

我读过这通常意味着缺少插件,但是,安装了 LUA 插件,并且通过 NGINX 执行相同操作时一切正常,这意味着加载 LUA 没有问题。

有什么帮助吗? 谢谢。

【问题讨论】:

    标签: lua uwsgi


    【解决方案1】:

    有人告诉我我必须添加http-modifier1 = 6,现在它可以工作了。 仍然不明白“6”是什么意思,但无论如何。

    【讨论】:

    • 一个小小的 google-fu 产生了this link,它解释了这意味着什么。和this link,其中列出了一些不同的值以及它们映射到的内容。
    猜你喜欢
    • 2022-01-08
    • 2021-08-16
    • 2022-11-14
    • 1970-01-01
    • 2012-01-20
    • 2014-01-11
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多