# cd /usr/local/src # wget http://luajit.org/download/LuaJIT-2.1.0-beta3.tar.gz # tar -zxvf LuaJIT-2.1.0-beta3.tar.gz # cd LuaJIT-2.1.0-beta3 # make # make install #ln -sf luajit-2.1.0-beta3 /usr/local/bin/luajit
2、安装openresty:
1 2 3 4 5 6 7 8
# cd /usr/local/src # wget http://openresty.org/download/ngx_openresty-1.13.6.2.tar.gz # wget https://sourceforge.net/projects/pcre/files/pcre/8.42/pcre-8.42.tar.gz # tar -zvxf pcre-8.42.tar.gz # tar -zvxf ngx_openresty-1.13.6.2.tar.gz # cd ngx_openresty-1.13.6.2.tar.gz # ./configure --prefix=/usr/local/openresty --with-luajit --with-pcre=/usr/local/src/pcre-8.42/ --with-http_stub_status_module --with-http_gzip_static_module --with-http_ssl_module # gmake && gmake install
3、下载ngx_lua_waf
1 2
# cd /usr/local/openresty/nginx/ # git clone https://github.com/loveshell/ngx_lua_waf.git