ubuntu NGINX LUA安装

以前一直介绍NGINX 和 PHP安装,今天安装NGINX+LUA,开始感觉挺难的,其实很容易!~

1、安装各种包

# sudo apt-get install libreadline-dev libncurses5-dev libpcre3-dev libssl-dev perl

2、去下载春哥的openresty,下载地址:http://agentzh.org/misc/nginx/ngx_openresty-1.2.6.1.tar.gz

3、安装

./configure --prefix=/opt/openresty \
            --with-luajit \
            --without-http_redis2_module \
            --with-http_iconv_module \
            --with-http_postgres_module \
            -j2

4、make && make install

摘自:http://openresty.org