Nginx安装支持Lua

下载LuaJIT

wget  http://luajit.org/download/LuaJIT-2.0.5.tar.gz

解压

tar -zxvf LuaJIT-2.0.5.tar.gz

编译安装

cd LuaJIT-2.0.5 && make && make install

获取nginx module

wget https://github.com/simpl/ngx_devel_kit/archive/v0.3.1rc1.tar.gz
wget https://github.com/openresty/lua-nginx-module/archive/v0.10.12rc2.tar.gz

获取nginx

wget http://nginx.org/download/nginx-1.12.2.tar.gz

解压文件, nginx的configure命令

./configure --prefix=/home/admin/server/nginx --with-ld-opt=-Wl,-rpath,/usr/local/lib --add-module=/home/admin/src/ngx_devel_kit-0.3.1rc1 --add-module=/home/admin/src/lua-nginx-module-0.10.12rc2 --with-http_ssl_module --with-http_realip_module --with-http_stub_status_module --with-http_gunzip_module --with-http_gzip_static_module

make -j2 && make install

你可能感兴趣的:(Nginx安装支持Lua)