CentOS系统下,如何安装 nginx_lua_module 模块 以及 echo-nginx-module 模块
ngx_lua_module 是一个nginx http模块,它把 lua 解析器内嵌到 nginx,用来解析并执行lua 语言编写的网页后台脚本。
特性:
下面简要介绍下 ngx_lua_module 模块的安装。
方式一:使用大牛 ZhangYichun 提供的集成包快速安装。
非常简单,下载 ngx_openresty,该集成包中有:Nginx,Lua或Luajit,ngx_lua,以及一些有用的Nginx第三方模块。
安装步骤:
[root@localhost] curl http://localhost/echohello echo[root@localhost] curl http://localhost/luahello lua
测试结果表明,两个模块都安装成功!
关于ngx_lua模块的详细文档见下:
http://wiki.nginx.org/HttpLuaModule