一、OpenRestry介绍
OpenRestry是一个包,包含了很多常用的第三方模块,以及他们的大多数依赖项。 特别是Lua功能。
二、配置Nginx Lua环境
2.1 编译、安装Nginx
Nginx编译:Linux
http://blog.csdn.net/guowenyan001/article/details/11060735
2.2 编译、安装openresty
1. wget http://openresty.org/download/ngx_openresty-1.7.2.1.tar.gz
2. tar zxvf ngx_openresty-1.7.2.1.tar.gz
3. cd ngx_openresty-1.7.2.1
4. ./configure --with-luajit --prefix=/usr/local/
5. make
6. make install
参考资料:
OpenResty安装:http://www.cppblog.com/AutomateProgram/archive/2013/03/21/198685.aspx