首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 其他教程 > 操作系统 >

CentOS系统上,怎么安装 nginx_lua_module 模块 以及 echo-nginx-module 模块

2014-05-26 
CentOS系统下,如何安装 nginx_lua_module 模块 以及 echo-nginx-module 模块ngx_lua_module 是一个nginx h

CentOS系统下,如何安装 nginx_lua_module 模块 以及 echo-nginx-module 模块

ngx_lua_module 是一个nginx http模块,它把 lua 解析器内嵌到 nginx,用来解析并执行lua 语言编写的网页后台脚本。

特性

支持Windows和Linux平台。支持高并发高性能。HTML网页中内嵌LUA脚本代码,类似于PHP。支持非阻塞的数据库操作,目前只支持MYSQL。支持异步的文件IO操作。支持非阻塞的SOCKET IO操作。

下面简要介绍下 ngx_lua_module 模块的安装。


方式一:使用大牛 ZhangYichun 提供的集成包快速安装。

非常简单,下载 ngx_openresty,该集成包中有:NginxLuaLuajitngx_lua,以及一些有用的Nginx第三方模块。

安装步骤:

[root@localhost] curl http://localhost/echohello echo[root@localhost] curl http://localhost/luahello lua

测试结果表明,两个模块都安装成功!

关于ngx_lua模块的详细文档见下:
http://wiki.nginx.org/HttpLuaModule


热点排行