OpenResty安装
wget --no-check-certificate https://openresty.org/download/openresty-1.19.9.1.tar.gz
tar -zxf openresty-1.19.9.1.tar.gz
cd openresty-1.19.9.1
./configure --help | more
./configure --prefix=/opt/openresty/bin_dir
make
# make install
# cp /opt/openresty/openresty-1.19.9.1/build/nginx-1.19.9/objs/nginx /opt/openresty/bin_dir/nginx/sbin/nginx
nginx.conf 中添加lua,lua 语法
- 指令:
content_by_lua
: 生成内容放入响应body中
lo