用于 Lua Web 开发的 Web 服务器 [英] What web server to use for Lua web development
本文介绍了用于 Lua Web 开发的 Web 服务器的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
Lua Web 开发应该使用什么 Web 服务器(以及为什么)?
What web server (and why) should I use for Lua web development?
推荐答案
有一些基于 Lua 的网络服务器:
There are a few Lua-based webservers around:
- Xavante 似乎是最受欢迎的.
- Haserl 小巧精致.
- Nanoki 严格来说并不是一个网络服务器,而是一个不错的小型纯 Lua wiki 引擎,值得研究.至于 Lua 维基,还有 Sputnik,它功能齐全且非常灵活,但有点缓慢的一面.
- 如果您更喜欢 Apache,可以使用 mod_lua(例如 mod_wombat).看起来它会进入下一个 Apache 发行版作为核心模块.
- 请注意,编写FastCGI Lua 模块并不难.
- 还有 Luv Lua MVC 网络框架项目(GitHub 页面).它还不成熟,但可能包含一些有趣的见解.
- 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:
- Luvit:http://luvit.io/(对我来说太像节点了)
- nginx 的 ngx_lua 模块:http://wiki.nginx.org/HttpLuaModule
- mongrel2 的 TIR:http://tir.mongrel2.org/
- Ophal:http://ophal.org(网络平台)
- lev:https://github.com/connectFree/lev
- Turbo:https://github.com/kernelsauce/turbo
- 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
这篇关于用于 Lua Web 开发的 Web 服务器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文