Nginx安装lua支持
Nginx 安装 lua 支持 需要 LuaJIT-2.0.4.tar.gz , ngx_devel_kit , lua-nginx-module 1. 下载安装 LuaJIT-2.0.4.tar.gz wget -c http://luajit.org/download/LuaJIT-2.0.4.tar.gz tar xzvf LuaJIT-2.0.4.tar.gz cd LuaJIT-2.0.4 make install PREFIX=/usr/local/luajit # 注意环境变量 ! export LUAJIT_LIB=/usr/local/luajit/lib export LUAJIT_INC=/usr/local/luajit/include/luajit-2.0 2. 下载解压 ngx_devel_kit wget https://github.com/simpl/ngx_devel_kit/archive/v0.3.0.tar.gz tar -xzvf v0.3.0.tar.gz 3. 下载解压 lua-nginx-module wget https://github.com/openresty/lua-nginx-module/archive/v0.10.8.tar.gz tar -xzvf v0.10.8.tar.gz 4. 下载安装 nginx-1.10