nginx 配合 lua 打印响应报文和请求报文日志

下载安装LuaJIT - LuaJIT-2.0.5

# 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 配合 lua 打印响应报文和请求报文日志_第1张图片

下载nginx lua模块 - lua-nginx-module-0.10.10

# wget https://github.com/openresty/lua-nginx-module/archive/v0.10.10.tar.gz
# tar -zxvf v0.10.10.tar.gz 

# export LUAJIT_LIB=/usr/local/lib 
# export LUAJIT_INC=/usr/local/include/luajit-

你可能感兴趣的:(Git,vim,Nginx,nginx,lua,响应报文,打印日志,Linux)