作者在 2020-07-06 13:14:16 发布以下内容
因为nginx安装lua扩展比较麻烦,所以直接安装openresty比较方便,安装使用方式跟nginx一样,默认集成了lua
wget https://openresty.org/download/openresty-1.17.8.1.tar.gz
tar zxvf openresty-1.17.8.1.tar.gz
cd openresty-1.17.8.1/
./configure --conf-path=/etc/nginx/nginx.conf --http-log-path=/var/log/nginx/access.log --error-log-path=/var/log/nginx/error.log --pid-path=/var/run/nginx.pid --lock-path=/var/lock/nginx.lock --with-http_stub_status_module --with-http_ssl_module --with-http_v2_module --with-http_gzip_static_module --with-stream --with-stream_ssl_module --with-http_realip_module;
make
make install