Lua Web 开发使用什么 Web 服务器

发布于 2024-07-29 00:50:56 字数 43 浏览 5 评论 0原文

我应该使用什么 Web 服务器(以及为什么)进行 Lua Web 开发?

What web server (and why) should I use for Lua web development?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(6

美煞众生 2024-08-05 00:50:56

有一些基于 Lua 的网络服务器:

  • Xavante 似乎是最受欢迎的。
  • Haserl 很好,很小。
  • Nanoki 严格来说并不是一个网络服务器,而是一个值得研究的小型纯 Lua wiki 引擎。 至于Lua wiki,还有Sputnik,它功能齐全,非常灵活,但有点缓慢的一面。
  • 如果您更喜欢 Apache,可以使用 mod_lua (ex mod_wombat)。 看起来将使其进入下一个Apache发行版作为核心模块。
  • 请注意,编写FastCGI Lua 模块并不难。
  • 还有 Luv Lua MVC Web 框架项目 (GitHub 页面)。 它还不成熟,但可能包含一些有趣的见解。

更新。 还有一些框架可供查看:

There are a few Lua-based webservers around:

  • Xavante seems to be the most popular.
  • Haserl is nice and small.
  • Nanoki is not strictly a webserver, but a nice small pure Lua wiki engine worth studying. As for the Lua wikies, there is also Sputnik, which is fully featured and very flexible, but is a bit on the slow side.
  • There is mod_lua (ex mod_wombat) if you prefer Apache. Looks like it would make it into the next Apache distribution as a core module.
  • Note that it is not so hard to write a FastCGI Lua module.
  • There is also Luv Lua MVC web-framework project (GitHub page). It is not mature yet, but may contain some interesting insights.

Update. Some more frameworks to check out:

逆蝶 2024-08-05 00:50:56

我们一直在为 nginx 开发 ngx_lua 模块,它支持 100% 非阻塞网络流量到 mysql、PostgreSQL、memcached、其他 http 服务等,因此具有出色的并发水平和整体性能:)

http://github.com/chaoslawful/lua-nginx-module

我们在生产中使用它:)

We've been working on the ngx_lua module for nginx, which supports 100% non-blocking network traffic to mysql, PostgreSQL, memcached, other http services, and more, hence outstanding concurrency level and over-all performance :)

http://github.com/chaoslawful/lua-nginx-module

and we're using it in production :)

怪我闹别瞎闹 2024-08-05 00:50:56

我认为用于 lua Web 开发的最佳 Web 服务器是 mongrel2。 看看 TIR 框架恕我直言,是当今 Web 开发中最好的 lua 使用。

The best web server I can think for lua web development is mongrel2. Take a look on TIR framework, which, IMHO, is the best lua use for web development these days.

一个人的旅程 2024-08-05 00:50:56

对于开发来说,运行小型测试服务器会很方便。 特别适合 Lua Web 开发的一个很好的候选者是 Xavante 服务器,它是 Kepler 项目的一部分。 除了一些支持的 Kepler 模块之外,Xavante 本身是用纯 Lua 编写的。

对于生产来说,在 Apache 上运行的新 mod_lua(在 Apache 团队将其纳入核心模块集之前被称为 mod_wombat)似乎是一个很好的选择。受人尊重的选择。

For development, it can be handy to run a small test server. A good candidate in particular for Lua web development is the Xavante server which is part of the Kepler project. Aside from some of the supporting Kepler modules , Xavante itself is written in pure Lua.

For production, the new mod_lua (which had been known as mod_wombat before the Apache team accepted it into the core set of modules) running on Apache would seem to be a well-respected choice.

拔了角的鹿 2024-08-05 00:50:56

还有 LuCI 项目 [1]。 这是 LuaConfigurationInterface,OpenWRT(嵌入式 Linux)的基于 Web 的管理前端。

LuCI 人员还编写了一个非常小的网络服务器,称为 lucittpd。
LuCI 也是一个 MVC。
并且处于生产状态;)

[1] http://luci.subsignal.org

there is as well the LuCI project [1]. which is the LuaConfigurationInterface, the web based mangement frontend for OpenWRT (embedded Linux).

The LuCI guys wrote also a very small webserver, called lucittpd.
LuCI is an MVC as well.
And in production state ;)

[1] http://luci.subsignal.org

青柠芒果 2024-08-05 00:50:56

最近,http://github.com/valenok/mongoose Web 服务器添加了 Lua 支持,请查看预构建 Windows 二进制文件位于 http://code.google.com/p/mongoose/下载/列表

Recently, Lua support was added to the http://github.com/valenok/mongoose web server, check out pre-build windows binary at http://code.google.com/p/mongoose/downloads/list

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文