apache 用于 Lua Web 开发的 Web 服务器
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/1166684/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
What web server to use for Lua web development
提问by Alexander Gladysh
What web server (and why) should I use for Lua web development?
我应该使用什么 Web 服务器(以及为什么)进行 Lua Web 开发?
回答by Alexander Gladysh
There are a few Lua-based webservers around:
有一些基于 Lua 的网络服务器:
- Xavanteseems to be the most popular.
- Haserlis nice and small.
- Nanokiis 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 itinto the next Apache distribution as a core module.
- Note that it is not so hard to write a FastCGI Lua module.
- There is also LuvLua MVC web-framework project (GitHub page). It is not mature yet, but may contain some interesting insights.
- Xavante似乎是最受欢迎的。
- Haserl又好又小。
- Nanoki严格来说并不是一个网络服务器,而是一个不错的小型纯 Lua wiki 引擎,值得研究。至于 Lua wiki,还有Sputnik,它功能齐全且非常灵活,但有点慢。
- 有mod_lua(前mod_wombat),如果你喜欢的Apache。像它看起来将使它进入下一个Apache发布的核心模块。
- 请注意,编写FastCGI Lua 模块并不难。
- 还有LuvLua MVC 网络框架项目(GitHub 页面)。它还不成熟,但可能包含一些有趣的见解。
Update. Some more frameworks to check out:
更新。还有一些框架需要检查:
- Luvit: http://luvit.io/(too node-like for my taste)
- ngx_lua module for nginx: http://wiki.nginx.org/HttpLuaModule
- TIR for mongrel2: http://tir.mongrel2.org/
- Ophal: http://ophal.org(web platform)
- lev: https://github.com/connectFree/lev
- Turbo: https://github.com/kernelsauce/turbo
- Luvit:http://luvit.io/ (对我来说太像节点了)
- nginx 的 ngx_lua 模块:http://wiki.nginx.org/HttpLuaModule
- mongrel2 的 TIR:http://tir.mongrel2.org/
- Ophal:http://ophal.org (网络平台)
- 列弗:https: //github.com/connectFree/lev
- 涡轮增压:https: //github.com/kernelsauce/turbo
回答by agentzh
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 :)
我们一直在为 nginx 开发 ngx_lua 模块,它支持 100% 非阻塞网络流量到 mysql、PostgreSQL、memcached、其他 http 服务等,因此具有出色的并发性和整体性能:)
http://github.com/chaoslawful/lua-nginx-module
http://github.com/chaoslawful/lua-nginx-module
and we're using it in production :)
我们在生产中使用它:)
回答by Carlo Pires
回答by RBerteig
For development, it can be handy to run a small test server. A good candidate in particular for Lua web development is the Xavanteserver which is part of the Kepler project. Aside from some of the supporting Kepler modules , Xavante itself is written in pure Lua.
对于开发,运行一个小型测试服务器会很方便。特别适合 Lua Web 开发的一个很好的候选者是Xavante服务器,它是 Kepler 项目的一部分。除了一些支持的 Kepler 模块之外,Xavante 本身是用纯 Lua 编写的。
For production, the new mod_lua(which had been known as mod_wombatbefore the Apache team accepted it into the core set of modules) running on Apache would seem to be a well-respected choice.
对于生产而言,在 Apache 上运行的新的mod_lua(mod_wombat在 Apache 团队将其纳入核心模块集之前就已为人所知)似乎是一个备受推崇的选择。
回答by phaidros
there is as well the LuCI project [1]. which is the LuaConfigurationInterface, the web based mangement frontend for OpenWRT (embedded Linux).
还有 LuCI 项目 [1]。这是 LuaConfigurationInterface,OpenWRT(嵌入式 Linux)的基于 Web 的管理前端。
The LuCI guys wrote also a very small webserver, called lucittpd. LuCI is an MVC as well. And in production state ;)
LuCI 人员还编写了一个非常小的网络服务器,称为 lucittpd。LuCI 也是一个 MVC。并处于生产状态;)
回答by valenok
Recently, Lua support was added to the http://github.com/valenok/mongooseweb server, check out pre-build windows binary at http://code.google.com/p/mongoose/downloads/list
最近,Lua 支持被添加到http://github.com/valenok/mongoose网络服务器,在http://code.google.com/p/mongoose/downloads/list查看预构建的 Windows 二进制文件

